<!--

//"Accept terms" form submission- By Dynamic Drive
//For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
//This credit MUST stay intact for use
var checkobj

function agreesubmit(el){
checkobj=el
if (document.all||document.getElementById){
for (i=0;i<checkobj.form.length;i++){  //hunt down submit button
var tempobj=checkobj.form.elements[i]
if(tempobj.type.toLowerCase()=="submit")
tempobj.disabled=!checkobj.checked
		}
	}
}

function defaultagree(el){
if (!document.all&&!document.getElementById){
if (window.checkobj&&checkobj.checked)
return true
else{
alert("Please read/accept terms to submit form")
return false
		}
	}
}

function Is() {
	 var agent = navigator.userAgent.toLowerCase();
	 this.major = parseInt(navigator.appVersion);
	 this.minor = parseFloat(navigator.appVersion);
	 this.ns = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1)));
	 this.ns2 = (this.ns && (this.major == 2));
	 this.ns3 = (this.ns && (this.major == 3));
	 this.ns4 = (this.ns && (this.major == 4));
	 this.ns5 = (this.ns && (this.major > 4));
	 this.ns6 = (this.ns && (agent.indexOf('netscape6')!=-1) );
	 this.ns7 = (this.ns && (agent.indexOf('netscape/7')!=-1) );
	 this.ns7pr = (this.ns && (agent.indexOf('netscape/7.0b1')!=-1) );
	 this.ns71 = (this.ns && (agent.indexOf('netscape/7.1')!=-1) );
	 this.ns72 = (this.ns && (agent.indexOf('netscape/7.2')!=-1) );
 	 this.ns8 = (this.ns && (agent.indexOf('netscape/8')!=-1) );
	 this.ie = (agent.indexOf("msie") != -1);
	 this.ie3 = (this.ie && (this.major == 2));
	 this.ie4 = (this.ie && (this.major >= 4));
	 this.ie5 = (this.ie && (this.major == 4) && (agent.indexOf("msie 5.0") != -1));
	 this.ie55 = (this.ie && (this.major == 4) && (agent.indexOf("msie 5.5") != -1));
	 this.ie6 = (this.ie && (agent.indexOf("msie 6.0")!=-1));
	 this.op3 = (agent.indexOf("opera") != -1);
	 this.pc  = (agent.indexOf("win") != -1);
	 this.mac = (agent.indexOf("mac")!=-1); // Mac detect
	 this.client = ( (navigator.userAgent.indexOf('AOL')!=-1) || (navigator.userAgent.indexOf('CS 2000')!=-1) )? 1 : 0;
	 this.moz = ( this.ns && (agent.indexOf("netscape/") == -1) );
	 if (this.moz) this.ns = 0;
	}
	
var is = new Is()

function browserSniff(){
	
	if (is.op3) {
		document.write("<link rel='stylesheet' href='includes/stylesheet_opera.css' type='text/css'>");
		}
	else if(is.ns7) {
		document.write("<link rel='stylesheet' href='includes/stylesheet_netscape.css' type='text/css'>");
//		window.alert("inside netscape 7.0");
		}
	else if(is.ns71) {
		document.write("<link rel='stylesheet' href='includes/stylesheet_netscape.css' type='text/css'>");
//		window.alert("inside netscape 7.1");
		}
	else if(is.ns72) {
		document.write("<link rel='stylesheet' href='includes/stylesheet_netscape.css' type='text/css'>");
//		window.alert("inside netscape 7.2");
		}
	else if(is.ns8) {
		document.write("<link rel='stylesheet' href='includes/stylesheet_netscape.css' type='text/css'>");
//		window.alert("inside netscape 8");
		}
	else if(is.ns6) {
		document.write("<link rel='stylesheet' href='includes/stylesheet_netscape6.css' type='text/css'>");
//		window.alert("inside netscape 6");
		}
	else if(is.moz) {
		document.write("<link rel='stylesheet' href='includes/stylesheet_netscape.css' type='text/css'>");
//		window.alert("inside mozilla");
		}
	else {
		document.write("<link rel='stylesheet' href='includes/stylesheet.css' type='text/css'>");
//		window.alert("inside ie");
		}
}

var whatis = new Is()
http://www.careerbuilder.com/csh/search.aspx?csh=CSH_itpersonnel&pubjobs=true&privjobs=true&int=false	
function fix_iFrame(){
	if (whatis.op3) {
	document.write("<iframe src='http://www.careerbuilder.com/csh/search.aspx?csh=CSH_itpersonnel&pubjobs=true&privjobs=true&int=false' name='iframe' width='850' height='1000' frameborder='0' border='0' scrolling='auto'></iframe>");
	}else if( whatis.ns7 || whatis.ns71 || whatis.ns72 || whatis.ns6 || whatis.ns81 ){
	document.write("<iframe src='http://www.careerbuilder.com/csh/search.aspx?csh=CSH_itpersonnel&pubjobs=true&privjobs=true&int=false' name='iframe' width='850' height='1000' frameborder='0' border='0' scrolling='auto'></iframe>");
}else {
	document.write("<iframe src='http://www.careerbuilder.com/csh/search.aspx?csh=CSH_itpersonnel&pubjobs=true&privjobs=true&int=false' name='iframe' width='850' height='1000' frameborder='0' border='0' scrolling='auto'></iframe>");
	}
}

//function fix_iFrame(){
//	if (whatis.op3) {
//	document.write("<iframe src='http://www.net-temps.com/adcgi/vj.cgi?id=itptx' name='iframe' width='950' height='1000' frameborder='0' border='0'></iframe>");
//	}else if( whatis.ns7 || whatis.ns71 || whatis.ns72 || whatis.ns6 || whatis.ns81 ){
//	document.write("<iframe src='http://www.net-temps.com/adcgi/vj.cgi?id=itptx' name='iframe' width='950' height='1000' frameborder='0' border='0'></iframe>");
// }else {
//	document.write("<iframe src='http://www.net-temps.com/adcgi/vj.cgi?id=itptx' name='iframe' width='950' height='1000' frameborder='0' border='0'></iframe>");
//	}
//}


var submitis = new Is()
	
function printSubmitForm(){
	if (submitis.op3) {
	document.write("<iframe src='http://www.net-temps.com/adcgi/vj.cgi?id=itptx' name='iframe' width='1050' height='1000' frameborder='0' border='0'></iframe>");
	}else if( submitis.ns7 || submitis.ns71 || submitis.ns72 ){
	document.write("<iframe src='http://www.net-temps.com/adcgi/vj.cgi?id=itptx' name='iframe' width='1050' height='1000' frameborder='0' border='0'></iframe>");
}else {
	document.write("<iframe src='http://www.net-temps.com/adcgi/vj.cgi?id=itptx' name='iframe' width='1050' height='1000' frameborder='0' border='0'></iframe>");
	}
}





function termsMsg(){
	if(window.confirm("I agree to the ITPS Terms and Conditions.")){
	return true;	
	}else{
	return false;	
	}
} 


function submitForm(){
	document.agreeform.submit()
}



re = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/
function checkEmail(emailobj) {
			if (!re.test(emailobj.value)) {
			window.alert("Invalid email address")
			emailobj.focus()
			//focus() & blur() not properly supported by Netscape, Mozilla, & Opera
			emailobj.blur()
			emailobj.select()
			}
		}

txt = /^[a-z,A-Z]*[- ]?[a-z,A-Z]*[- ]?[a-z,A-Z]*$/
function checkName(txtobj) {
			if (!txt.test(txtobj.value)) {
			window.alert("Invalid Entry.  Only alphabetical characters and hyphens are allowed.")
			txtobj.focus()
			txtobj.blur()
			txtobj.select()
			}
}

function setFocus()
{
	document.form.fname.focus();
}

function formCheck(formobj){
	var fieldRequired = Array("fname", "lname", "email", "streetaddress", "city", "state", "zip", "phone");
	var fieldDescription = Array("First Name", "Last Name", "Email", "Street Address", "City", "State", "Zip", "Phone");
	var alertMsg = "Please complete the following fields:\n";
	var l_Msg = alertMsg.length;
	for (var i = 0; i < fieldRequired.length; i++){
		var obj = formobj.elements[fieldRequired[i]];
		var statechoice = formobj.state.selectedIndex;
		if (obj){
			switch(obj.type){
			case "select-one":
			if (formobj.state.options[statechoice].value == ""){
					alertMsg += " - " + fieldDescription[i] + "\n";
			}
				break;
			case "select-multiple":
				if (obj.selectedIndex == -1){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			case "text":
			case "textarea":
				if (obj.value == "" || obj.value == null){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
				break;
			default:
			}//end switch
			
			if (obj.type == undefined){
				var blnchecked = false;
				for (var j = 0; j < obj.length; j++){
					if (obj[j].checked){
						blnchecked = true;
					}
				}
				if (!blnchecked){
					alertMsg += " - " + fieldDescription[i] + "\n";
				}
			}
		}//end if(obj)
	}//end outer for

	if (alertMsg.length == l_Msg){
		return true;
	}else{
		alert(alertMsg);
		return false;
	}
}//end function formCheck


function isZip(passedzip) {
			if (passedzip == "") {
				return false
			}
			
			if (passedzip.length < 5) {
				return false
			}
			
			for (i=0; i<passedzip.length; i++) {
				if (passedzip.charAt(i) < "0") {
					return false
				}
				if (passedzip.charAt(i) > "9") {
					return false
				}
			}
			return true
}

function validZip(passedzipobj) {
			if (isZip(passedzipobj)) {
				return true
			}
			return false
}

function checkZip(zipobj) {
		if (!validZip(zipobj.value)) {
				window.alert("Invalid Zip code")
				zipobj.focus()
				zipobj.blur()
				zipobj.select()
			}
}

function isNum(passednum) {
			if (passednum == "") {
							window.alert("Empty string")
				return false
			}
			
			if ((passednum.charAt(0) != "1") || (passednum.charAt(0) != "2")) {
							window.alert("Year must start with a 1 or 2")
				return false
			}
			
			if (passednum.length < 4) {
							window.alert("not enough digits")
				return false
			}
			
			for (i=0; i<passednum.length; i++) {
				if (passednum.charAt(i) < "0") {
								window.alert("less than zero")

					return false
				}
				if (passednum.charAt(i) > "9") {
									window.alert("greater than 9")

					return false
				}
			}
			return true
}

function validNum(passednum) {
			if (isNum(passednum)) {
				return true
			}
			return false
}

function checkNum(numobj) {
		if (!validNum(numobj.value)) {
				window.alert("Invalid Year")
				numobj.focus()
				numobj.blur()
				numobj.select()
			}
}
		
pnum = /^\(?(\d{3})\)?[\.\-\/ ]?(\d{3})[\.\-\/ ]?(\d{4})$/
function checkPhone(phonenumber){
	validPhone = pnum.exec(phonenumber.value)
			if (validPhone) {
				phonenumber.value = "(" + validPhone[1] + ") " + validPhone[2] + "-" + validPhone[3]
			}
			else {
				window.alert(phonenumber.value + " isn't a valid phone number. Only enter numbers and be sure to include the  area code.")
				phonenumber.focus()
				phonenumber.blur()
				phonenumber.select()
			}
		}




//-->













































































































































































































































































































































































































































































































































































