/********************************
*Sets Window.status for oD event*
********************************/

function oD(evt,ws)
{
if(evt)
{
window.status = ws;
}
}

/********************************
*Sets Window.status for wS Event*
********************************/

function wS(evt)
{
if(evt)
{
window.status = document.title;
}
}

/***************************
*Disable select-text script*
***************************/

function disableselect(e)  
{
return false
}

function reEnable()
{
return true
}
document.onselectstart = new Function("return false")

if(window.sidebar)
{
document.onmousedown = disableselect
document.onclick = reEnable
}

/****************
*Email Validator*
****************/

function validEmail(email)
{
invalidChars=" /:,;"
for(i=0; i<invalidChars.length; i++)
{
badChar = invalidChars.charAt(i)
if(email.indexOf(badChar,0) > -1)
{
return false
}
}
atPos = email.indexOf("@",1)
if(atPos == -1)
{
return false
}
if(email.indexOf("@",atPos+1) > -1)
{
return false
}
periodPos = email.indexOf(".",atPos)
if(periodPos == -1)
{
return false
}
if(periodPos+3 > email.length)
{
return false
}
return true
}

/*************************
*submit for Employer Form*
*************************/

function submitIt(form)
{
if(employerform.name.value == "")
{
alert("Enter Your Name")
employerform.name.focus()
return false
}
if(employerform.title.value == "")
{
alert("Enter Your Title")
employerform.title.focus()
return false
}
if(employerform.company.value == "")
{
alert("Enter Your Companies Name")
employerform.company.focus()
return false
}
if(employerform.phone1.value == "")
{
alert("Enter Your Phone Area Code")
employerform.phone1.focus()
return false
}
if(employerform.phone2.value == "")
{
alert("Enter Your Phone Number")
employerform.phone2.focus()
return false
}
if(employerform.phone3.value == "")
{
alert("Enter Your Phone Number")
employerform.phone3.focus()
return false
}
if(employerform.email.value == "")
{
alert("Enter You Email Address")
employerform.email.focus()
return false
}
if(!validEmail(employerform.email.value))
{
alert("Invalid Email Address")
employerform.email.select()
return false
}
if(employerform.message.value == "")
{
alert("Enter A Description")
employerform.message.focus()
return false
}
return true
}