<!--
function validateform(theform){
/*Validates any form, to call it, put the following line in the 
form definition tag - onsubmit="validateform(this);"*/
	var postit;
	var alert_string;
	postit = true;
	alert_string = 'The Following fields are Required:\n';
	for(var i=0;i<theform.elements.length;i++){
		//alert (theform.elements[i].type);
		if(theform.elements[i].required == 'yes' && theform.elements[i].value == ''){
			alert_string = alert_string+' - '+theform.elements[i].displayname+'\n';
			postit = false;
		}
	}
	if(postit == false){
		alert (alert_string);
	}
	event.returnValue=postit;
};
function SetAddress(){
	if(document.register.sameasabove.checked){
		document.register.address_postal.value = document.register.address_physical.value;
	}
	else{
		document.register.address_postal.value = '';
	}
}

function popup(name, url){		
	window.open(url, name, "width=400,height=200,scrollbars=yes dependant=yes");		
};

function FilterPage(fobj) {
   filter = fobj.options[fobj.selectedIndex].value

   if (filter != "") {
	   window.navigate("?section=jobhunt&filter="+filter);
   }
   else{
   	   window.navigate("?section=jobhunt");
   }
}

function RefreshPage(){
    opener.location.reload(true);
    self.close();
}

//-->
