

	function chkData(){

		if (document.form1.noSNum.checked) {

			document.form1.SNum.value="";

		}

	}



	

	function chkData2(){

		document.form1.noSNum.checked=0;

	}

	

	function focusCompanyOther(){

		document.form1.company_type_other.focus();

	}

	function setCompanyOtherNull(){

		document.form1.company_type_other.value='';

	}

	function focusCompanyOtherField(){

		document.form1.company_type[3].checked=1;

	}





/*@cc_on @*/

/*@if (@_win32 && @_jscript_version>=5)



function window.confirm(str)

{

    execScript('n = msgbox("'+str+'","4132")', "vbscript");

    return(n == 6);

}



@end @*/



	function focusHomePhone(){

		if (chkPreferContact()==0) {

			if (confirm('Would you like to set your Home phone as the preferred contact number?')) {

				document.form1.prefer_contactnumber[0].checked=1;

			}

		}

	}

	function focusWorkPhone(){

		if (chkPreferContact()==0) {

			if (confirm('Would you like to set your Work phone as the preferred contact number?')) {

				document.form1.prefer_contactnumber[1].checked=1;

			}

		}

	}

	function focusMobile(){

		if (chkPreferContact()==0) {

			if (confirm('Would you like to set your Mobile as the preferred contact number?')) {

				document.form1.prefer_contactnumber[2].checked=1;

			}

		}

	}



	function chkPreferContact() {

		if ( (document.form1.prefer_contactnumber[0].checked == 0) &&

			(document.form1.prefer_contactnumber[1].checked == 0) &&

			(document.form1.prefer_contactnumber[2].checked == 0) ){

			return 0;

		}else{

			return 1;

		}

	}

	function showInputOn(theID) { 

		myID = document.getElementById(theID); 

		

		if(navigator.appName == 'Microsoft Internet Explorer'){

			myID.style.display = 'block';

		}else{

			myID.style.display = 'table';

		}

	}



	function showInputOff(theID) { 

		myID = document.getElementById(theID); 

		myID.style.display = 'none';

	}

