// 	if this asp page is one of the resume builder components 
//		force a refresh to the displayed resume window to update its contents
	
	if (location.href.indexOf("Apply") != -1)
		{
		PopUpResume();
		}




function PopUpResume()
{ 
	ResumeWindow = window.open('ResDynamic.asp','ResumeWindow','resizable,scrollbars,width=300,height=400,left=20,top=120');
}






function UpdateExperience(strEmailAddress, strStartDate, strEndDate, strCompanyName)
{
	strCompanyName = TranslateAmpersand(strCompanyName)

 	var strAspOpen = "UpdateExperience.asp?EmailAddress=" + strEmailAddress + "&StartDate=" + strStartDate + "&EndDate=" + strEndDate + "&CompanyName=" + strCompanyName;
	UpdateWindow = window.open(strAspOpen,'UpdateWindow','resizable,scrollbars,width=400,height=400,left=' + (screen.width - 450) + ',top=' + (screen.height - 450));
}







function UpdateEducation(strEmailAddress, strEducLevel, strDegreeMajor)
{
 	var strAspOpen = "UpdateEducation.asp?EmailAddress=" + strEmailAddress + "&EducLevel=" + strEducLevel + "&DegreeMajor=" + strDegreeMajor;
	UpdateWindow = window.open(strAspOpen,'UpdateWindow','resizable,scrollbars,width=400,height=400,left=' + (screen.width - 450) + ',top=' + (screen.height - 450));
}








function UpdateSkills(strEmailAddress, strSkillItem)
{

 	var strAspOpen = "UpdateSkills.asp?EmailAddress=" + strEmailAddress + "&SkillItem=" + strSkillItem;
	UpdateWindow = window.open(strAspOpen,'UpdateWindow','resizable,scrollbars,width=400,height=400,left=' + (screen.width - 450) + ',top=' + (screen.height - 450));
}






function TranslateAmpersand(strToTranslate)
{
	strToBeReturned = ""

	for (ix=0; ix<strToTranslate.length; ix++) {

		if (strToTranslate.charAt(ix) == "&")
			strToBeReturned = strToBeReturned + "%26"
		else if (strToTranslate.charAt(ix) == " ")
			strToBeReturned = strToBeReturned + "%20"
		else
			strToBeReturned = strToBeReturned + strToTranslate.charAt(ix);

	}

	return strToBeReturned;
}





function SpareWindow(htmlDoc) 
{ 
	//if (!NavWindow) {NavWindow.href = htmlDoc}
	//else 
	{
		NavWindow = window.open(htmlDoc,'SpareWindow','resizable,scrollbars,menubar,toolbar,location,directories,status,width=530,height=300,left=' + (screen.width - 580) + ',top=' + (screen.height - 380));
		timerx = setTimeout("NavWindowfocus()",1000);
	}
}






function NavWindowfocus()
{
	NavWindow.focus();
}





function CheckLoginData()
{return true;
}




function checkCommentsExists()
{
	document.CommentsForm.UserComments.value = trimSpaces(document.CommentsForm.UserComments.value);
	if (document.CommentsForm.UserComments.value == "")
	{
		window.alert("Comments need to be supplied.");
		document.CommentsForm.UserComments.select();
		document.CommentsForm.UserComments.focus();
		return false;
	}
	else return true;

}




function CheckFormData()

{window.alert("This process not defined yet!");
return false;
}