
{
	document.getElementById('imagepad1').style.display = "none";
}

function imgshow(e)
{
	if(e.keyCode==40)
	{
	document.getElementById('imagepad1').style.display = "none";
	}
	else if(e.keyCode==13)
	{
	document.getElementById('imagepad1').style.display = "none";
	}
	else if(e.keyCode==9)
	{
	document.getElementById('imagepad1').style.display = "none";
	}
	else if(e.keyCode==38)
	{
	document.getElementById('imagepad1').style.display = "none";
	}
	else
	{
	document.getElementById('imagepad1').style.display = "block";	
	}
}

function val()
{
	if(document.f1.txt1.value=="")
    {
	document.getElementById('pad').style.display = "none";
	document.getElementById('imagepad1').style.display = "none";
	}
}


function valid()
{
	if(document.f1.years_experience.value=="" || document.f1.years_experience.value==" ")
    {
	document.getElementById('pad1').style.display = "block";
	
	}
	else
	{
	document.getElementById('pad1').style.display = "none";
	}

}
function valid1()
{
	if(document.f1.metros.value=="" || document.f1.metros.value==" ")
    {
	
	document.getElementById('pad2').style.display = "block";
	}
	else
	{
	document.getElementById('pad2').style.display = "none";
	}

}
function valid2()
{
	if(document.f1.education.value=="" || document.f1.education.value==" ")
    {
	document.getElementById('pad3').style.display = "block";	
	}
	else
	{
	document.getElementById('pad3').style.display = "none";	 
	}

}
function valid3()
{
	if(document.f1.salary.value=="" || document.f1.salary.value==" ")
    {
	document.getElementById('pad4').style.display = "block";	
	}
	else
	{
	document.getElementById('pad4').style.display = "none";	
	}

}
function valid5()
{
	if(document.f1.industries.value=="" || document.f1.industries.value==" ")
    {
	document.getElementById('pad6').style.display = "block";	
	}
	else
	{
	document.getElementById('pad6').style.display = "none";	
	}


}
function valid6()
{
	if(document.f1.comptype.value=="" || document.f1.comptype.value==" ")
    {
	document.getElementById('pad7').style.display = "block";	
	}
	else
	{
	document.getElementById('pad7').style.display = "none";	
	}
}
function valid7()
{
	if(document.f1.employees.value=="" || document.f1.employees.value==" ")
    {
	document.getElementById('pad8').style.display = "block";	
	}
	else
	{
	document.getElementById('pad8').style.display = "none";	
	}
}
function valid8()
{
	if(document.f1.boss_level.value=="" || document.f1.boss_level.value==" ")
    {
	document.getElementById('pad9').style.display = "block";	
	}
	else
	{
	document.getElementById('pad9').style.display = "none";	
	}

}
function valid9()
{
	if(document.f1.direct_reports.value=="" || document.f1.direct_reports.value==" ")
    {
	document.getElementById('pad10').style.display = "block";	
	}
	else
	{
	document.getElementById('pad10').style.display = "none";	
	}
}

function nextpage()
{
	if(document.f1.txt1.value!="e.g. Software Engineer" || document.f1.txt1.value!="" || document.getElementById('pad').style.display == "none")
	document.f1.submit();
	return true;
}

function filecheck()
	{
		  if(document.getElementById('pad').style.display == "block" || document.f1.txt1.value=="e.g. Software Engineer" || document.f1.txt1.value=="")
		  {
		  return false;
          }
          else if(document.getElementById('pad1').style.display == "block" || document.f1.years_experience.value=="")
          {
		  return false;
          }
          else if(document.getElementById('pad2').style.display == "block" || document.f1.metros.value=="")
          {
		  return false;
		  }
          else if(document.getElementById('pad3').style.display == "block" || document.f1.education.value=="")
          {
          return false;
          }
          else if(document.getElementById('pad4').style.display == "block" || document.f1.salary.value=="e.g. $80,000" || document.f1.salary.value=="")
          {
		  return false;
          }
		  else if(document.getElementById('pad5').style.display == "block")
          {
		  return false;
          }
          else if(document.getElementById('pad6').style.display == "block" || document.f1.industries.value=="")
          {
		  return false;
          }
          else if(document.getElementById('pad7').style.display == "block" || document.f1.comptype.value=="")
          {
		  return false;
          }
		  else if(document.getElementById('pad8').style.display == "block" || document.f1.employees.value=="")
          {
		  return false;
          }
          else if(document.getElementById('pad9').style.display == "block" || document.f1.boss_level.value=="")
          {
		  return false;
          }
		  else if(document.getElementById('pad10').style.display == "block" || document.f1.direct_reports.value=="")
          {
		  return false;
          }
		  else{
		  document.getElementById("sh").innerHTML='<a href="javascript:nextpage();" class="button-link" style="text-align:center" >My Salary Reports...</a>';
		  }

}


function invalidation1()
{
	if(document.getElementById('pad').style.display == "block" || document.f1.txt1.value=="e.g. Software Engineer" || document.f1.txt1.value=="")
	 {
		  document.getElementById("sh").innerHTML='<a class="button-disable" style="text-align:center" onmouseover="filecheck();" title="Missing or erroneous personal information - look for the yellow exclamation marks" >My Salary Reports...</a>';
		  return false;
     }
}
function invalidation2()
{
	if(document.getElementById('pad1').style.display == "block" || document.f1.years_experience.value=="")
	 {
		  document.getElementById("sh").innerHTML='<a class="button-disable" style="text-align:center" onmouseover="filecheck()" title="Missing or erroneous personal information - look for the yellow exclamation marks" >My Salary Reports...</a>';
		  return false;
     }
}
function invalidation3()
{
	if(document.getElementById('pad2').style.display == "block" || document.f1.metros.value=="")
    {
		 document.getElementById("sh").innerHTML='<a class="button-disable" style="text-align:center" onmouseover="filecheck();" title="Missing or erroneous personal information - look for the yellow exclamation marks">My Salary Reports...</a>';
		  return false;
    }
}
function invalidation4()
{
	if(document.getElementById('pad3').style.display == "block" || document.f1.education.value=="")
    {
		 document.getElementById("sh").innerHTML='<a class="button-disable" style="text-align:center" onmouseover="filecheck();" title="Missing or erroneous personal information - look for the yellow exclamation marks">My Salary Reports...</a>';
		  return false;
    }
}
function invalidation5()
{
 if(document.getElementById('pad4').style.display == "block" || document.f1.salary.value=="e.g. $80,000" || document.f1.salary.value=="")
    {
		 document.getElementById("sh").innerHTML='<a class="button-disable" style="text-align:center" onmouseover="filecheck();" title="Missing or erroneous personal information - look for the yellow exclamation marks">My Salary Reports...</a>';
		  return false;
    }
		
}
function invalidation11()
{
 if(document.getElementById('pad5').style.display == "block")
    {
		 document.getElementById("sh").innerHTML='<a class="button-disable" style="text-align:center" onmouseover="filecheck();" title="Missing or erroneous personal information - look for the yellow exclamation marks">My Salary Reports...</a>';
		  return false;
    }
		
}

function invalidation6()
{
	if(document.getElementById('pad6').style.display == "block" || document.f1.industries.value=="")
    {
		 document.getElementById("sh").innerHTML='<a class="button-disable" style="text-align:center" onmouseover="filecheck();" title="Missing or erroneous personal information - look for the yellow exclamation marks"  >My Salary Reports...</a>';
		  return false;
    }
}
function invalidation7()
{
	if(document.getElementById('pad7').style.display == "block" || document.f1.comptype.value=="")
    {
		 document.getElementById("sh").innerHTML='<a class="button-disable" style="text-align:center" onmouseover="filecheck();" title="Missing or erroneous personal information - look for the yellow exclamation marks">My Salary Reports...</a>';
		  return false;
    }
}
function invalidation8()
{
	if(document.getElementById('pad8').style.display == "block" || document.f1.employees.value=="")
    {
		 document.getElementById("sh").innerHTML='<a class="button-disable" style="text-align:center" onmouseover="filecheck();" title="Missing or erroneous personal information - look for the yellow exclamation marks" >My Salary Reports...</a>';
		  return false;
    }
}
function invalidation9()
{
	if(document.getElementById('pad9').style.display == "block" || document.f1.boss_level.value=="")
	{
		 document.getElementById("sh").innerHTML='<a class="button-disable" style="text-align:center" onmouseover="filecheck();" title="Missing or erroneous personal information - look for the yellow exclamation marks">My Salary Reports...</a>';
		  return false;
    }
}
function invalidation10()
{
	if(document.getElementById('pad10').style.display == "block" || document.f1.direct_reports.value=="")
	{
		 document.getElementById("sh").innerHTML='<a class="button-disable" style="text-align:center" onmouseover="filecheck();" title="Missing or erroneous personal information - look for the yellow exclamation marks">My Salary Reports...</a>';
		  return false;
    }
}

function validate3(string)
 {
    var Chars = "$,. 0123456789";
    for (var i = 0; i < string.length; i++)
    {
	   if (Chars.indexOf(string.charAt(i)) == -1)
       {
		   document.getElementById('pad4').style.display = "block";
		   document.getElementById("sh").innerHTML='<a class="button-disable" style="text-align:center" onmouseover="filecheck();" title="Missing or erroneous personal information - look for the yellow exclamation marks">My Salary Reports...</a>';
		    document.f1.salary.focus();
			return false;
       }
	   else
       {
		   document.getElementById('pad4').style.display = "none";
		   for (var j = 0; j < string.length; j++)
    		{
	   		if (Chars.indexOf(string.charAt(j)) == -1)
       		{
			   document.getElementById('pad4').style.display = "block";
			   document.getElementById("sh").innerHTML='<a class="button-disable" style="text-align:center" onmouseover="filecheck();" title="Missing or erroneous personal information - look for the yellow exclamation marks">My Salary Reports...</a>';
				document.f1.salary.focus();
				return false;
		  	 }
			}
			return true;
       }
    }

}


function validate4(string)
 {

    var Chars = "$,. 0123456789";

    for (var i = 0; i < string.length; i++)
    {
       if (Chars.indexOf(string.charAt(i)) == -1)
       {
       document.getElementById('pad5').style.display = "block";
	   document.getElementById("sh").innerHTML='<a class="button-disable" style="text-align:center" onmouseover="filecheck();" title="Missing or erroneous personal information - look for the yellow exclamation marks">My Salary Reports...</a>';
       document.f1.bonuses.focus();
          return false;
       }
	   else
	   {
		   document.getElementById('pad5').style.display = "none";
		for (var j = 0; j < string.length; j++)
    	{
	   		if (Chars.indexOf(string.charAt(j)) == -1)
       		{
			   document.getElementById('pad5').style.display = "block";
			   document.getElementById("sh").innerHTML='<a class="button-disable" style="text-align:center" onmouseover="filecheck();" title="Missing or erroneous personal information - look for the yellow exclamation marks">My Salary Reports...</a>';
			   document.f1.bonuses.focus();
			   return false;
		  	 }
		}
		return true;
		}
    }

}


function func()
{
	if(document.f1.txt1.value=="e.g. Software Engineer")
	{
	document.f1.txt1.value="";
	document.getElementById("pad").style.display = "none";
	}

}
function check1()
{
	if(document.f1.txt1.value!=" ")
	{
		showCustomer();
	}
}


function func1()
{
if(document.f1.salary.value=="e.g. $80,000")
{
	document.f1.salary.value="";
	document.getElementById('pad4').style.display = "block";
}
}
function nochange()
{

	alert("No suggestions appear");

}


// set this to true if the popup should close
// upon leaving the launching page; else, false
var autoclose = true;  
// do not edit below this line

var beIE = document.all?true:false;

function OpenPopUp(windowW,windowH,windowX,windowY,urlPop,title,s)	{
	if (beIE) {
		NFW = window.open("","popFrameless",","+s);
		NFW.blur();
		window.focus();
		NFW.resizeTo(windowW,windowH);
		NFW.moveTo(windowX,windowY);
		var frameString=""+
		"<html>"+
		"<head>"+
		"<title>"+title+"</title>"+
		"</head>"+
		"<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
		"<frame name='top' src='"+urlPop+"' scrolling=auto>"+
		"<frame name='bottom' src='about:blank' scrolling='no'>"+
		"</frameset>"+
		"</html>";
		NFW.document.open();
		NFW.document.write(frameString);
		NFW.document.close();
	}	else {
		NFW = window.open(urlPop,"popFrameless","scrollbars,"+s);
		NFW.blur();
		window.focus();
		NFW.resizeTo(windowW,windowH);
		NFW.moveTo(windowX,windowY);
	}
	NFW.focus();
	if (autoclose) {
		window.onunload = function(){NFW.close();}
	}
}

function openFrameless() {
	OpenPopUp(300,300,160,50,"forgetpwd.php","forgot your password","width=300,height=300");
}

function openFrameless1() {
	OpenPopUp(520,450,160,50,"salary1.php","Salary Report","width=520,height=450");
}

function openFrameless2() {
	OpenPopUp(520,450,160,50,"bonus1.php","Bonus Report","width=520,height=450");
}

function openFrameless3() {
	OpenPopUp(600,300,200,50,"titles.php","SalaryBase Job Titles","width=600,height=300");
}
