//for refreshvar sURL = unescape(window.location.pathname);//jQuery.noConflict();var verify="";function verifyOwner(what,page){	j=what.mho.length; //alert(j)	for (i=0; i<j; i++){		if(what.mho[i].checked) var verify = what.mho[i].value	}		if (verify == "confirmed") {		createCookie('mhoCookie','confirmed',21)		if (page == "quote") {			window.parent.location="../quote/index.php";		} else if (page == "factory_pricing") {			window.location.href="factory_pricing.html";		} else if (page == "ontime_delivery") {			window.location.href="ontime_delivery.html";		} else {			window.location.href="appliance_professionals.html";		}			} else {		//alert("Sorry, you must be a Multi-housing Owner to use this website.");			window.location.href="sorry.html";	}}var unit_type="";function unitType(what,open){	j=what.unit_type.length; //alert(j)	for (i=0; i<j; i++){		if(what.unit_type[i].checked) var unit_type = what.unit_type[i].value	}		if (unit_type == "new") {		Effect.SlideUp(what,{duration:0.4});		Effect.SlideDown(open+"_new",{duration:0.5}); return false;				} else {		var newApp = document.getElementById(open+"_new");		newApp.style.display = 'block';		newApp.style.position = 'absolute';		newApp.style.float = 'none';		newApp.style.visibility = 'hidden';		//end ie6 display none hack		Effect.SlideUp(what,{duration:0.4}); 		Effect.SlideDown(open+"_replace",{duration:0.5}); return false;	}}function createCookie(name,value,days) {	if (days) {		var date = new Date();		date.setTime(date.getTime()+(days*24*60*60*1000));		var expires = "; expires="+date.toGMTString();	}	else var expires = "";	document.cookie = name+"="+value+expires+"; path=/";}function readCookie(name) {	var nameEQ = name + "=";	var ca = document.cookie.split(';');	for(var i=0;i < ca.length;i++) {		var c = ca[i];		while (c.charAt(0)==' ') c = c.substring(1,c.length);		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);	}	return null;}function checkCookie(page) {	var mhoCookie = readCookie('mhoCookie')	if (mhoCookie) {		//alert("mmm....cookie!");		if (page == "quote") {			window.parent.location="../quote/index.php";		} else if (page == "factory_pricing") {			window.location.href="factory_pricing.html";		} else if (page == "ontime_delivery") {			window.location.href="ontime_delivery.html";		} else {			window.location.href="appliance_professionals.html";		}	} else {		//alert("no cookies here!");		//display the page	}}function checkCookieQuote(frompage) {	var mhoCookie = readCookie('mhoCookie')	if (mhoCookie) {		if (frompage == "home") {			window.location.href="quote/index.php";		} else if (frompage == "lightbox") {			window.parent.location="../quote/index.php";		} else {			window.location.href="../quote/index.php";		}	} else {		if (frompage == "home") {			tb_show(null, "verify/multihousing_verify.php?page=quote&KeepThis=true&TB_iframe=true&height=258&width=515", false);		} else if (frompage == "lightbox") {			window.location.href="multihousing_verify.php";		} else {			tb_show(null, "../verify/multihousing_verify.php?page=quote&KeepThis=true&TB_iframe=true&height=258&width=515", false);		}	}}function closePanel(panel) {	Effect.SlideUp(panel,{duration:0.5});}function isNumeric(units) {   var ValidChars = "0123456789.";   var IsNumber=true;   var Char;   for (i = 0; i < units.length && IsNumber == true; i++)       {       Char = units.charAt(i);       if (ValidChars.indexOf(Char) == -1)          {         IsNumber = false;         }      }   return IsNumber; }function swap_src(image_id,suffix) {  	$(image_id).src = '/images/' + image_id + '_' + suffix + '.gif';} function eraseCookie(name) {	createCookie(name,"",-1);}function slideBox(focus, arrow) {	var sbCurrent = readCookie('sbCookie');	var currentArrow = readCookie('sbArrow');	//first, does sbCookie exist? im deleting this cookie on page load	if (sbCurrent) {		//this is the standard toggle case when someone is closing the open slidebox		if (sbCurrent == focus) {			createCookie('sbCookie', 'reset');			createCookie('sbArrow', 'reset');			Effect.SlideUp(focus,{duration:0.5});			Effect.Fade(arrow,{duration:0.3});			return false;		}		//after someone toggles a slidebox shut, the cookie value is set to 'reset', which is handled here		if (sbCurrent == 'reset') {			createCookie('sbCookie', focus);			createCookie('sbArrow', arrow);			Effect.SlideDown(focus,{duration:0.5});			Effect.Appear(arrow,{duration:0.3});			return false;		}		//this is the case where the user clicked a different slidebox than the currently opened one		createCookie('sbCookie', focus);		createCookie('sbArrow', arrow);		Effect.SlideDown(focus,{duration:0.5});		Effect.Appear(arrow,{duration:0.3});		Effect.SlideUp(sbCurrent,{duration:0.5});		Effect.Fade(currentArrow,{duration:0.3});			} else {		//no cookie, fresh page case		createCookie('sbCookie', focus);		createCookie('sbArrow', arrow);		Effect.SlideDown(focus,{duration:0.5});		Effect.Appear(arrow,{duration:0.3});	}}function printPage() {	window.print();  }function emailPage() {	var uri = "mailto:?";	uri += "Subject=" + escape("J. Robert Scott - Executive Search");	uri += "&";	uri += "Body=Thought%20you%20might%20be%20interested%20in%20the%20following%20link%3A%0A%0A";	uri += window.location.href;	window.location.href = uri;}function textSize() {        $$(".subpage_padding").each(function(elmt) { elmt.toggleClassName("big") });}function expandToggle(obj) {	var togglee = document.getElementById(obj);	togglee.innerHTML = (togglee.innerHTML == '[-] Less' ? '[+] More' : '[-] Less' );}