function Blur () {
	document.FORM1.key.value="Enter Job title, Company";
	document.FORM1.key.blur();
}

function ChkBlank () {
	if (document.FORM1.key.value=="") {
	document.FORM1.key.value="Enter Job title, Company";
	}
}

function UserInput () {
	if (document.FORM1.key.value=="Enter Job title, Company") {
	document.FORM1.key.value="";
	}
	else {
	document.FORM1.key.select();
	}
}
function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

//function ChkSubmit () {
	//if (document.FORM1.key.value=="Enter Job title, Company") {
		//alert("Please enter keywords in serch box");
		//document.FORM1.key.select();
		//}
	//else {
		//MM_showHideLayers('apDiv1','','show');
	//}
//}

function submit1 () {
	if (document.loginform.login_id.value=="")
		{
		alert("Username can not be blank");
		document.loginform.login_id.select();
		document.loginform.login_id.focus();
		return false;
		}
		
		if (document.loginform.password.value=="")
		{
		alert("Password can not be blank");
		document.loginform.password.select();
		document.loginform.password.focus();
		return false;
		}
	
}


function submit2 () {
	if (document.GB_loginform.login_id.value=="")
		{
		alert("Username can not be blank");
		document.GB_loginform.login_id.select();
		document.GB_loginform.login_id.focus();
		return false;
		}
		
		if (document.GB_loginform.login_id.value=="Username")
		{
		alert("Username can not be blank");
		document.GB_loginform.login_id.select();
		document.GB_loginform.login_id.focus();
		return false;
		}
		
		if (document.GB_loginform.password.value=="")
		{
		alert("Password can not be blank");
		document.GB_loginform.password.select();
		document.GB_loginform.password.focus();
		return false;
		}
		
		if (document.GB_loginform.password.value=="Password")
		{
		alert("Password can not be blank");
		document.GB_loginform.password.select();
		document.GB_loginform.password.focus();
		return false;
		}
	
}

//=================================== Pop-Up Start ===================================//

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=yes,width=450,height=300,left = 0,top = 650');");
}

//=================================== Pop-Up End ===================================//


//=================================== Pop-Under Start ===================================//

function popUnder01(URL) {
day = new Date();
id = day.getTime();
win1= eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=yes,width=250,height=250,left = 150,top = 200');");
win1.blur();
}

function popUnder02(URL) {
day = new Date();
id = day.getTime();
win2= eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=yes,width=250,height=250,left = 500,top = 200');");
win2.blur();
}

//=================================== Pop-Under End ===================================//
