var thisMenu = new Object;var theTimer;function showMenu(menuName){if (thisMenu.id != null){	clearMenu();}if (theTimer != null){clearTimeout(theTimer);}theMenu = new Object;theMenu = eval("document.getElementById('" + menuName + "')");theMenu.style.visibility = "visible";}nsdom = (document.layers) ? true:false;iedom = (document.all) ? true:false;function getWindowWidth() {    winW = (nsdom) ? window.outerWidth : screen.width;    return winW;		}function getWindowHeight() {    winH = (nsdom) ? window.outerHeight : screen.Availheight;    return winH;		}function popIt(theFile,windowW,windowH,wName,scrolling){    bWidth = getWindowWidth();    bHeight = getWindowHeight();    bTop = (nsdom) ? this.window.screenY : 0;    bLeft = (nsdom) ? this.window.screenX : 0;    popLeft = ((bWidth - windowW)/2) + bLeft;    popTop = ((bHeight - windowH)/2) + bTop;    if (wName == null)    {        wName = 'pop';    }    if (scrolling == null){    scrolling = "auto";    }    var popWindow = window.open(theFile,wName,'width='+windowW+',height='+windowH+',top='+popTop+',left='+popLeft+',scrollbars='+scrolling+',statusbar=no,toolbar=no,resizable=yes');    popWindow.focus();}function loadParent(theUrl){	if (top.opener != null){		top.opener.location.href = theUrl;		opener.focus();	}else{				popWin(theUrl);	}	}function preloadImages(){}function tost(){		return confirm("By clicking \"OK\" and subscribing to The Beat you acknowledge that the title \"The Beat\" and the tagline, \"A Travel Business Newsletter\", are protected by copyright, and that it is illegal under U.S. federal law to copy, fax or electronically distribute copyrighted material. This includes email forwarding.","I Agree","I Disagree");	}function tos(){		 	if (confirm("By clicking \"OK\" and subscribing to The Beat you acknowledge that the title \"The Beat\" and the tagline, \"A Travel Business Newsletter\", are protected by copyright, and that it is illegal under U.S. federal law to copy, fax or electronically distribute copyrighted material. This includes email forwarding.")){			return true;		/*		emailCatch();			*/							}else{		return false;		}}function emailCatch(){response = 	prompt("Please enter an administrative email address to subscribe under. You will be able to add a total of 10 recipient addresses once you subscribe.");				if (response){				return true;					}else{			if (response == ""){				if (confirm("You must enter a recipient email address in order to subscribe to The Beat")){										emailCatch();								}else{								return false;								}			}		}}function archiveListing(sel){	for (j=0; j<sel.options.length; j++) {		if (sel.options[j].selected) {		  window.location.href = "/archives.php?pid=checkuser&index=" + sel.options[j].value;		  return;			}		}}function checkOther(sel){		if (sel.options[8].selected) {		  document.getElementById("jobfunctiontext").style.display = "block";		}else{		  document.getElementById("jobfunctiontext").style.display = "none";		}		  return;}function checkOther2(sel){		if (sel.options[22].selected) {		  document.getElementById("orgactivitytext").style.display = "block";		}else{		  document.getElementById("orgactivitytext").style.display = "none";		}		  return;}/*function archiveListing(dir){location.href= "/archives.php?pid=checkuser&index=" + dir;}*/function validateForm(theForm,formIndex){	if (!formIndex){	formIndex = 0;	}			goodForm = 0;			if(checkChoices(theForm,formIndex)){	goodForm = 1;	}	if (goodForm){			if (document.forms[formIndex].elements['pubname[]'][1].checked){			if (checkSubForm(formIndex)){				goodForm = 1;			}else{				goodForm = 0;			}		}		}		if (goodForm){		if(theForm.company.value){		goodForm = 1;		}else{		alert("Please enter your company name or organization.");		goodForm = 0;		}	}								if (goodForm){		if(validateEmail(theForm.email.value)){		goodForm = 1;		}else{		goodForm = 0;		}	}	if (goodForm){		if(theForm.birthcity.value != 'select'){		goodForm = 1;		}else{		alert("Please enter your eye color.");		goodForm = 0;		}	}		if (goodForm){		if(checkPasswd(theForm.pw1.value,theForm.pw2.value)){		goodForm = 1;		}else{		goodForm = 0;		}	}		if (goodForm){		if(checkRequired(theForm)){		goodForm = 1;		}else{		goodForm = 0;		}	}		if (goodForm){	return true;	}else{	return false;	}}function checkChoices(theForm,formIndex){		pubchoice = 0;		arrayLength = theForm.elements['pubname[]'].length;		for (i = 0; i < arrayLength; i++){						if (document.forms[formIndex].elements['pubname[]'][i].checked){			pubchoice = 1;			break;			}			}		if (document.forms[formIndex].elements['procprintholder']){	printchoice = document.forms[formIndex].elements['procprintholder'].value;	}		if (document.forms[formIndex].elements['beatholder']){	beatchoice = document.forms[formIndex].elements['beatholder'].value;	}	if (pubchoice == 0 && printchoice == 0 && beatchoice == 0){	alert("You must select at least 1 publication to subscribe to.");	return false;	}else{	return true;	}	}	function checkRequired(theForm){	q1choice = 0;		arrayLength = theForm.elements['involvement[]'].length;		for (i = 0; i < arrayLength; i++){			if (document.forms[0].elements['involvement[]'][i].checked){		q1choice = 1;		break;		}	}		if (!q1choice){	alert("Question 1 is required.  Please provide a response to question 1.");	return false;	}else{	return true;	}	}function validateEmail(address,tos){	if (address.length > 40){	alert("The email address you entered contains too many characters. Please choose an email address with fewer characters.  Thank You.");	return false;	}pattern = /^[\._'\-\w]+@[_'\-\w]+\.([\._'\-\w]+\.)?([a-z]{2,6})$/i;result = address.match(pattern);	if (result){		if (tos){		tres = tost();		return tres;		}else{				return true;				}		}else{		alert("The email address you entered is NOT valid, please check your entry for errors and try again.");	return false;		}}function checkPasswd(pwd1,pwd2){	if (pwd1.length < 6){		alert("Please choose a password that is at least 6 characters long");		return false;	}else{			pattern = /^([a-zA-Z0-9_]+)$/i;		result = pwd1.match(pattern);		if (!result){					alert("Please use only alphanumeric characters in your password");			return false;					}else{					if (pwd1 == pwd2){						return true;						}else{						alert("Your password entries did not match.  Please reenter the password and password confirm fields and try again.");						return false;						}					}			}	}function toggleForm(togstate){document.getElementById('mailingaddress').style.display = togstate ? "block" : "none";	}function checkPub(chkbox){	if (showMailingForm){		 if (chkbox.checked){		toggleForm(1);		alert("Note: Complimentary subscriptions to Procurement.travel are limited to the U.S., Canada, and U.S. possessions. The publisher reserves the right to limit the number of free subscriptions, and will only accept applications which meet the qualification criteria for the publication.");	 }else{		toggleForm(0);	 }		}}function checkSubForm(formIndex){theForm = new Object();theForm = document.forms["subscriptions"];statesel = new Object();statesel = theForm.elements["state"];countrysel = new Object();countrysel =theForm.elements["country"];fnamevalue = new Object();fnamevalue = theForm.elements["fname"].value;lnamevalue = new Object();lnamevalue = theForm.elements["lname"].value;address1value = new Object();address1value = theForm.elements["address1"].value;address2value = new Object();address2value = theForm.elements["address2"].value;zipvalue = new Object();zipvalue = theForm.elements["zip"].value;cityvalue = new Object();cityvalue = theForm.elements["city"].value;if (!fnamevalue){alert("Please provide a first name for your Procurement.travel subscription.");return false;}if (!lnamevalue){alert("Please provide a last name for your Procurement.travel subscription.");return false;}if (!address2value){alert("In the first address field, please enter a street address or PO Box for your Procurement.travel subscription.");return false;}//if (!address2value){//alert("In the first address field, please enter a street address or PO Box for your Procurement.travel subscription.");//return false;//}if (statesel.options[0].selected){alert("Please select a state or province for your Procurement.travel subscription.");return false;}if (!zipvalue){alert("Please enter your zip or postal code for your Procurement.travel subscription." );return false;}if (!cityvalue){alert("Please enter the name of the city or town for your Procurement.travel subscription.");return false;}if (countrysel.options[0].selected){alert("Please select a country in the drop down menu for your Procurement.travel subscription.");return false;}return true;}function checkState(sel){	if (sel.options[1].selected) {			province = prompt("Please Enter Your Province");				sel.options[1].text = "Non-US (" + province + ")";		}}function procMssg(){alert('Note: Complimentary subscriptions to the printed version of Procurement.travel are limited to the U.S., Canada, and U.S. possessions. The publisher reserves the right to limit the number of free subscriptions, and will only accept applications which meet the qualification criteria for the publication.');}	function clearOthers(){	initArray();		for (c = 0; c <= 11; c++){	checkboxArray[c].checked = false;	}	checkboxArray[12].checked = true;	}function clearNone(){		initArray();	checkboxArray[12].checked = false;	}function initArray(){	checkboxArray = new Object;	checkboxArray = document.forms['subscriptions'].elements['travelservices[]'];}navonimage = new Image();navonimage.src = '/images/bg-nav-on.png';function navOn(navId,navState){if(navState == 'off'){document.getElementById('n'+navId).style.background = 'url(/images/bg-nav-on.png)';}}function navOff(navId,navState){if(navState == 'off'){document.getElementById('n'+navId).style.background = 'url(/images/bg-nav-off.png)';}}