function getObj(name){
 if (document.getElementById) {
   return document.getElementById(name);
 }
 else if (document.all) {
   return document.all[name];
 }
 else if (document.layers) {
   return document.layers[name];
 }
 else return false;
}

function selChk(){
	var x = getObj('portSelFrm');
	if(x.portID.value=="X") {
		alert("Please select a port");
		return false;
	}
	else return true;
}

function checkportsched(){
	var errors = false;
	var x = getObj('homePortSel');
	var errorTxt = "Sorry, there is a problem trying to submit your request. Please check the problem below and try again:\n";
	if (x.portID.value=="X") {
		errors = true;
		errorTxt += "You did not select a port\n";
	}
	if (errors){
		alert (errorTxt);
		return false;
	}
	else return true;
}
