

function setOpacity(id,id2,opacity) {

    var object = document.getElementById(id).style;

	var object2 = document.getElementById(id2).style;

	object2.display = '';

    object.opacity = (opacity / 100);

    object.filter = "alpha(opacity=" + opacity + ")";

}





function removeOpacity(id,id2,opacity) {

    var object = document.getElementById(id).style;

	 var object2 = document.getElementById(id2).style;

	 object2.display = 'none';

    /*object.opacity = (opacity / 100);

    object.filter = "alpha(opacity=" + opacity + ")";*/

}



function selectbox()	{

	

	

	

	if (document.hear.job1.checked==false && document.hear.job2.checked==false && document.hear.job3.checked==false && document.hear.job4.checked==false && document.hear.job5.checked==false && document.hear.job6.checked==false && document.hear.job7.checked==false && document.hear.job8.checked==false && document.hear.job9.checked==false && document.hear.job10.checked==false && document.hear.job11.checked==false && document.hear.other.value==''){

alert("Please specify from where you got the information about us.");

document.hear.other.focus();

return;

} 



 

if ((document.hear.job1.checked==true || document.hear.job2.checked==true || document.hear.job3.checked==true || document.hear.job4.checked==true || document.hear.job6.checked==true || document.hear.job7.checked==true || document.hear.job8.checked==true || document.hear.job9.checked==true || document.hear.job10.checked==true || document.hear.job11.checked==true  ) && document.hear.adcode.value==""){

alert("Your selection requires a Ad Code. Please enter an Ad Code to continue");

document.hear.adcode.focus();

return;

}



if (document.hear.job5.checked==true && document.hear.referrer.value==""){

alert("Your selection requires a person's name or website URL. Please enter an value to continue");

document.hear.referrer.focus();

return;

}



document.hear.submit();	

}



function confirmbox()

{

		if(document.confirmfrm.sales_rep_job.checked == true)

		{

			var srj = document.confirmfrm.sales_rep_job.value;

		}

		else

		{

			var srj = 'No';

		}

		

		if(document.confirmfrm.sales_rep_comp.checked == true)

		{

			var src = document.confirmfrm.sales_rep_comp.value;

		}

		else

		{

			var src = 'No';

		}

		

		if(document.confirmfrm.sample_sales.checked == true)

		{

			var ssc = document.confirmfrm.sample_sales.value;

		}

		else

		{

			var ssc = 'No';

		}

		

		if (srj=='No')

		{

			alert("Please check sales representative job description.");

			//window.location="index.php";

			//removeOpacity('maincontent','confirmpopup',10)

			document.confirmfrm.sales_rep_job.focus();

			return;

		}

		

		else if(src=='No')

		{

			alert("Please check sales representative compensation plan.");

			//window.location="index.php";

			document.confirmfrm.sales_rep_comp.focus();

			return;

		}

		

		else if(ssc=='No')

		{

			alert("Please check sample sales calls.");

			//window.location="index.php";

			document.confirmfrm.sample_sales.focus();

			return;

		}

		

		/*if(document.confirmfrm.salary_benefits[0].checked == true)

		{

			var ss1 = document.confirmfrm.salary_benefits[0].value;

		}

		else if(document.confirmfrm.salary_benefits[1].checked == true)

		{

			var ss1 = document.confirmfrm.salary_benefits[1].value;

		}

		

		if(document.confirmfrm.sample_sales[0].checked == true)

		{

			var ss2 = document.confirmfrm.sample_sales[0].value;

		}

		else if(document.confirmfrm.sample_sales[1].checked == true)

		{

			var ss2 = document.confirmfrm.sample_sales[1].value;

		}

		

		if (ss1=='No')

		{

			alert("Please read the Compensation Plan.");

			window.location="index.php";

			//removeOpacity('maincontent','confirmpopup',10)

			document.confirmfrm.salary_benefits.focus();

			return;

		}

		else if(ss2=='No')

		{

			alert("Please listen to the sample sales calls.");

			window.location="index.php";

			document.confirmfrm.sample_sales.focus();

			return;

		}*/

		document.confirmfrm.submit();	

}





function choose(b){

	

	var a = b;

	

	if(a!=1){document.hear.job1.checked=false;}

	if(a!=2){document.hear.job2.checked=false;}

	if(a!=3){document.hear.job3.checked=false;}

	if(a!=4){document.hear.job4.checked=false;}

	if(a!=5){document.hear.job5.checked=false;}

	if(a!=6){document.hear.job6.checked=false;}

	if(a!=7){document.hear.job7.checked=false;}

	if(a!=8){document.hear.job8.checked=false;}

	if(a!=9){document.hear.job9.checked=false;}

	if(a!=10){document.hear.job10.checked=false;}
	
	if(a!=11){document.hear.job11.checked=false;}

	

	if(a==6){document.hear.adcode.value=1;}

	else if(a==7){document.hear.adcode.value="WGME";}

	else if(a==8){document.hear.adcode.value="SWF";}
	
	else if(a==9){document.hear.adcode.value="Craigs List";}
	
	else if(a==10){document.hear.adcode.value="Northeast Careers";}
	
	else if(a==11){document.hear.adcode.value="TechME";}

	else {document.hear.adcode.value="";}

	

}



function submitform()

{

  document.location.submit();

}

