//break out of frames, if framed site tries to link to GC //if (top.frames.length!=0) { top.location=self.document.location; }var browser = navigator.appName;var version = navigator.appVersion;var os = navigator.platform;var ie = "Microsoft Internet Explorer";var nn = "Netscape";//document.write('<test tag browser=' + browser + 'version=' + version + ' >');//Code For Main Navigation Menusvar br;if(navigator.appName == "Netscape" && navigator.appVersion.charAt(0)=="4") {br="N";}else if(navigator.appName == "Microsoft Internet Explorer" && document.all != null) {br="IE";}else if(navigator.appName == "Netscape" && document.getElementById != null && navigator.appVersion.charAt(0)=="5") {br="N5";}else if(window.sidebar) // firefox	{br="FF";}else {br=null;}var NS4 = (document.layers);var IE4 = (document.all);var ver4 = (NS4 || IE4);   var isMac = (navigator.appVersion.indexOf("Mac") != -1);var isMenu = (NS4 || (IE4 && !isMac ));     function change_picture(new_source1) {	document.Product_Image.src=new_source1;}var dom = (document.getElementById) ? true : false; var ns5 = ((navigator.userAgent.indexOf("Gecko")>-1) && dom) ? true: false; var ie5 = ((navigator.userAgent.indexOf("MSIE")>-1) && dom) ? true : false; var ns4 = (document.layers && !dom) ? true : false; var ie4 = (document.all && !dom) ? true : false; 		function getObj(id) {   if (dom) return document.getElementById(id);  return (ns4) ? document.layers[id] : (ie4) ? document.all[id] : (ie5||ns5) ? document.getElementById(id) : null; }function handleNonUS() {	var vSelectedCountryIndex=document.customer_info.ShipCountry.selectedIndex;	var vSelectedStateIndex=document.customer_info.ShipStateSelect.selectedIndex;	var vSelectedBillCountryIndex=document.customer_info.BillCountry.selectedIndex;	var vSelectedBillStateIndex=document.customer_info.BillStateSelect.selectedIndex;		if(document.customer_info.ShipState.value != ""){		if((document.customer_info.ShipCountry.options[vSelectedCountryIndex].text == "United States") || (document.customer_info.ShipStateSelect.options[vSelectedStateIndex].text !="Outside US")) {			alert("This item is reserved for locations outside of the United States");			document.customer_info.ShipState.value = "";		}	}	if(document.customer_info.BillState.value != "") {		if((document.customer_info.BillCountry.options[vSelectedBillCountryIndex].text == "United States") || (document.customer_info.BillStateSelect.options[vSelectedBillStateIndex].text != "Outside US")) {			alert("This item is reserved for locations outside of the United States");			document.customer_info.BillState.value = "";		}	}}function update_URB() {	var myshipaddress = document.customer_info.ShipAddress.value;	var myshipurb = document.customer_info.ShipUrbanization.value;	if(myshipurb != ''){		document.customer_info.ShipAddress.value = myshipurb + '|' + myshipaddress;	}	var mybilladdress = document.customer_info.BillAddress.value;	var mybillurb = document.customer_info.BillUrbanization.value;	if(mybillurb != ''){		document.customer_info.BillAddress.value = mybillurb + '|' + mybilladdress;	}	var myemail = document.customer_info.ShipEmail.value;	if (myemail == ""){		myanswer = confirm("If you do not supply an email address you will not receive a confirmation and we cannot send you tracking information for your order.\nClick OK to place your order or Cancel to enter your address.");		if(myanswer){			return true;		}		else {			document.customer_info.ShipEmail.focus();			return (false);		}	}	return true;}function bookmarksite(title,url){	if (window.sidebar){ // firefox		alert("Firefox users must press CNTL-D");	}	else if(window.opera && window.print){ // opera		var elem = document.createElement('a');		elem.setAttribute('href',url);		elem.setAttribute('title',title);		elem.setAttribute('rel','sidebar');		elem.click();	} // ie	else if(document.all) { 		window.external.AddFavorite(url, title);	}}function popDown(){return;}function startIt(){return;}if (br){      	if (document.images){		// On images tabs store		var continue_on = new Image(138,18);		continue_on.src = "graphics/en-US/mmui/gc/continue_on.gif";		var close_on = new Image(138,18);		close_on.src = "graphics/en-US/mmui/gc/close_on.gif";		var signup_on = new Image(138,18);		signup_on.src = "../hdr/hdr_img/sign_me_up_on.gif";		var signup_off = new Image(138,18);		signup_off.src = "../hdr/hdr_img/sign_me_up_off.gif";		var login_off= new Image(24,120);		login_off.src= "graphics/en-US/mmui/gc/login2_off.gif";		var login_on= new Image(24,120);		login_on.src= "graphics/en-US/mmui/gc/login2_on.gif";		// On images buttons order form		var add_on = new Image(120, 24);		add_on.src = "graphics/en-US/mmui/gc/add_on.gif";		// Off images buttons order form		var add_off = new Image(120, 24);		add_off.src = "graphics/en-US/mmui/gc/add_off.gif";		var close_off = new Image(120, 24);		close_off.src = "graphics/en-US/mmui/gc/close_off.gif";		// Off images store		var continue_off = new Image(138,18);		continue_off.src = "graphics/en-US/mmui/gc/continue_off.gif";		// Images for top nav bar		var expressadd_on = new Image(120,24);		expressadd_on.src = "graphics/en-US/mmui/gc/add2_on.gif";		var expressadd_off = new Image(120,24);		expressadd_off.src = "graphics/en-US/mmui/gc/add2_off.gif";			var home_on = new Image(120,24);		home_on.src = "graphics/en-US/mmui/gc/home2_on.gif";		var home_off = new Image(120,24);		home_off.src = "graphics/en-US/mmui/gc/home2_off.gif";			var faq_on = new Image(120,24);		faq_on.src = "graphics/en-US/mmui/gc/faq2_on.gif";		var faq_off = new Image(120,24);		faq_off.src = "graphics/en-US/mmui/gc/faq2_off.gif";			var index_on = new Image(120,24);		index_on.src = "graphics/en-US/mmui/gc/index2_on.gif";		var index_off = new Image(120,24);		index_off.src = "graphics/en-US/mmui/gc/index2_off.gif";		// Images for right sidebar		var checkout_on = new Image(120.24);		checkout_on.src = "graphics/en-US/mmui/gc/checkout_on.gif";		var checkout_off = new Image(120.24);		checkout_off.src = "graphics/en-US/mmui/gc/checkout_off.gif";				var basket_on = new Image(120.24);		basket_on.src = "graphics/en-US/mmui/gc/basket_on.gif";		var basket_off = new Image(120.24);		basket_off.src = "graphics/en-US/mmui/gc/basket_off.gif";			var new_on = new Image(120.24);		new_on.src = "graphics/en-US/mmui/gc/new_on.gif";		var new_off = new Image(120.24);		new_off.src = "graphics/en-US/mmui/gc/new_off.gif";				var gallery_on = new Image(120.24);		gallery_on.src = "graphics/en-US/mmui/gc/gallery_on.gif";		var gallery_off = new Image(120.24);		gallery_off.src = "graphics/en-US/mmui/gc/gallery_off.gif";				var specials_on = new Image(120.24);		specials_on.src = "graphics/en-US/mmui/gc/specials_on.gif";		var specials_off = new Image(120.24);		specials_off.src = "graphics/en-US/mmui/gc/specials_off.gif";				var tiffany_on = new Image(120.24);		tiffany_on.src = "graphics/en-US/mmui/gc/tiffany_on.gif";		var tiffany_off = new Image(120.24);		tiffany_off.src = "graphics/en-US/mmui/gc/tiffany_off.gif";		var create_on = new Image(120,24);		create_on.src = "graphics/en-US/mmui/gc/create_on.gif";		var create_off = new Image(120,24);		create_off.src = "graphics/en-US/mmui/gc/create_off.gif";			var place_on = new Image(120,24);		place_on.src = "graphics/en-US/mmui/gc/place_on.gif";		var place_off = new Image(120,24);		place_off.src = "graphics/en-US/mmui/gc/place_off.gif";		var cont_check_on = new Image(150,24);		cont_check_on.src = "graphics/en-US/mmui/gc/cont_check_on.gif";		var cont_check_off = new Image(150,24);		cont_check_off.src = "graphics/en-US/mmui/gc/cont_check_off.gif";			var ret_shop_on = new Image(150,24);		ret_shop_on.src = "graphics/en-US/mmui/gc/ret_shop_on.gif";		var ret_shop_off = new Image(150,24);		ret_shop_off.src = "graphics/en-US/mmui/gc/ret_shop_off.gif";		var first_on = new Image(120, 24);		first_on.src = "graphics/en-US/mmui/gc/first_on.gif";		var first_off = new Image(120, 24);		first_off.src = "graphics/en-US/mmui/gc/first_off.gif";				var prev_on = new Image(120, 24);		prev_on.src = "graphics/en-US/mmui/gc/prev_on.gif";		var prev_off = new Image(120, 24);		prev_off.src = "graphics/en-US/mmui/gc/prev_off.gif";				var next_on = new Image(120, 24);		next_on.src = "graphics/en-US/mmui/gc/next_on.gif";		var next_off = new Image(120, 24);		next_off.src = "graphics/en-US/mmui/gc/next_off.gif";				var last_on = new Image(120, 24);		last_on.src = "graphics/en-US/mmui/gc/last_on.gif";		var last_off = new Image(120, 24);		last_off.src = "graphics/en-US/mmui/gc/last_off.gif";				var submitwork_on = new Image(120, 24);		submitwork_on.src = "graphics/en-US/mmui/gc/submit_work_on.gif";		var submitwork_off = new Image(120, 24);		submitwork_off.src = "graphics/en-US/mmui/gc/submit_work_off.gif";				var continue_on = new Image(120, 24);		continue_on.src = "graphics/en-US/mmui/gc/continue_on.gif";		var continue_off = new Image(120, 24);		continue_off.src = "graphics/en-US/mmui/gc/continue_off.gif";	}		}        function filter_artist(artist){	temp=artist.options[artist.options.selectedIndex].value;	tempURL = "/Merchant2/merchant.mv?Screen=ART&Artist="+temp;	window.location=(tempURL);}        function updateEmail(form){		form.Customer_PasswordEmail.value=form.Customer_Login.value;		form.Customer_ShipEmail.value=form.Customer_Login.value;		return true;}function comparePasswords(form){	var pass1=form.Customer_Password.value;	var pass2=form.Customer_VerifyPassword.value;	if(!(pass1==pass2)){		alert("Passwords do not agree");	}}// A simple javascript to pop-up windows...  function openWindow(newURL, newWidth, newHeight, resize) {  // Declare and initialize top and left variables  var calcLeft = 100;  var calcTop = 100;          // Update properties if comp. browser  if (parseInt(navigator.appVersion) >= 4){	  calcTop = screen.availHeight /2 - newHeight / 2;	  calcLeft = screen.availWidth / 2 - newWidth / 2;  }  // Open the new window using top and left properties  window.open(newURL, 'remote', 'status=no,toolbar=no,menubar=no,location=no,scrollbars=no,width=' + newWidth + ',height=' + newHeight + ',left=' + calcLeft + ',top=' + calcTop + ',resizable=yes');}           // Functions to "hilite" imagesfunction Act(imgName){     if (document.images && (br !='N5')){	    document[imgName].src = eval(imgName + '_on.src');	}	else if(br =='N5'){	    document[imgName].src = eval(imgName + '_on.src');	}}function InAct(imgName) {    if (document.images && (br !='N5')){    	document[imgName].src = eval(imgName + '_off.src') 	}    else{    	if(document.images){	    	document[imgName].src = eval(imgName + '_off.src') 	    }    }}// functions that swap images & status barfunction imageOn(i){	if(br){		if (document.images){			document.images[i].src = onImgArray[i].src;			return (true);		}		else{			return false;		}	}	else{		return false;	}}function imageOff(i){	if(br){		if (document.images){		document.images[i].src = offImgArray[i].src;		return (true);		}		else{			return false;		}	}	else{		return false;	}}function setMsg(msg){		window.status = msg;		return (true);}// functions that check form entries on cust infofunction InfoValidator(theForm){			if (theForm.ShipEmail.value == ""){		alert("Please enter your email address.");		theForm.ShipEmail.focus();		return (false);	}	else{	theForm.ShipEmail.value = theForm.ShipEmail.value.toLowerCase() ;	}					if (theForm.ShipFirstName.value == ""){		alert("Please enter your first name.");		theForm.ShipFirstName.focus();		return (false);	}	else{		theForm.ShipFirstName.value = capitalize(theForm.ShipFirstName.value);	}		if (theForm.ShipLastName.value == ""){		alert("Please enter your last name.");		theForm.ShipLastName.focus();		return (false);	}	else{		theForm.ShipLastName.value = capitalize(theForm.ShipLastName.value);	}		if (theForm.ShipPhone.value == ""){		alert("Please enter your phone number.");		theForm.ShipPhone.focus();		return (false);	}		if (theForm.ShipAddress.value == ""){		alert("Please enter your street address with any unit or apartment number.");		theForm.ShipAddress.focus();		return (false);	}	else{		theForm.ShipAddress.value = findwords(theForm.ShipAddress.value);	}		if (theForm.ShipCity.value == ""){		alert("Please enter your city.");		theForm.ShipCity.focus();		return (false);	}		if (theForm.ShipState_Select.options[theForm.ShipState_Select.selectedIndex].text == "Select US State"){		  if (theForm.ShipCountry.options[theForm.ShipCountry.selectedIndex].text == "United States"){		alert("Please enter your state or country from the popup lists.");		theForm.ShipState_Select.focus();		return (false);	  }	}	if (theForm.ShipZip.value == ""){		alert("Please enter your zip code.");		theForm.ShipZip.focus();		return (false);	}	if ((theForm.ShipCountry.value == "Puerto Rico") && (theForm.ShipUrbanization.value == "")){		alert("Please enter your urbanization code for Puerto Rico.");		theForm.ShipUrbanization.focus();		return (false);	}	if (theForm.ShipEmail.value.length > 0){		var checkOK = "@";		var checkStr = theForm.ShipEmail.value;		var allValid = false;		for (i = 0;	 i < checkStr.length;  i++)		{			ch = checkStr.charAt(i);			for (j = 0;	 j < checkOK.length;  j++)			if (ch == checkOK.charAt(j))			{				allValid = true;				break;				}	  		}	}	if (!allValid)	{		alert("The email address is in the wrong format! Use the name@company.com format in lower case.");		theForm.ShipEmail.focus();		return (false);	}		return (true);} // capitalize the first letter of a string and make the rest lowercasefunction capitalize(astring){	var tempstring = astring.substring(0,1).toUpperCase();	tempstring += astring.substring(1);	return (tempstring);} function findwords(theString){	var firstposition = 0;	var tempstring = "";	theString.value = theString.value.toLowerCase();	do{		theString.value = capitalize(theString.value);		firstposition = theString.value.indexOf(" ");		if (firstposition != -1){			tempstring += theString.value.substring(0,firstposition + 1);			theString.value = theString.value.substring( firstposition + 1 );		}	}	while ( theString.value.indexOf(" ") != -1 ) ;	tempstring += capitalize( theString.value );	theString.value=tempstring	return(tempstring);}var shippingwindow;if(!shippingwindow || shippingwindow.closed){	var shippingwindow;}function openShippingRates(){	var tempURL ="http://www.glasscrafters.biz/www/ShippingRates.html";		if(!shippingwindow || shippingwindow.closed){		shippingwindow = window.open(tempURL,"OrderForm","menubar,height=375,width=300");		shippingwindow.focus();	}	else{		shippingwindow.location=(tempURL);		shippingwindow.focus();	}}var orderform;if(!orderform || orderform.closed){	var orderform;}function openOrderForm(){	var tempURL ="http://www.glasscrafters.biz/Merchant2/order_form.mv?";		if(!orderform || orderform.closed){		orderform = window.open(tempURL,"OrderForm","menubar,height=200,width=550");		orderform.focus();	}	else{		orderform.location=(tempURL);		orderform.focus();	}}var info;if(!info || info.closed){	var info;}else{}	function openFAQ(){	var tempURL ="http://www.glasscrafters.biz/www/faq2.html#Anchor-Express";		if(!info || info.closed){		info = window.open(tempURL,"Info","menubar,height=425,width=495");		info.focus();	}	else{		info.location=(tempURL);		info.focus();	}}function openProductView(productcode){	var tempURL ="http://www.glasscrafters.biz/Merchant2/order_form.mv?Product_Code=" + productcode		if(!info || info.closed){		info = window.open(tempURL,"Info","menubar,height=425,width=495");		info.focus();	}	else{		info.location=(tempURL);		info.focus();	}}function openGlassForm(productcode, categorycode){	var tempURL ="http://www.glasscrafters.biz/Merchant2/order_form.mv?Product_Code=" + productcode+ "&Category_Code=" + categorycode;	if(br=="N"){		options="scrollbars,height=475,width=520";	}	else{		options="scrollbars,height=425,width=495";	}		if(!info || info.closed){		info = window.open(tempURL,"Info",options);		info.focus();	}	else{		info.location=(tempURL);		info.focus();	}}function openArtistGallery(pic_id){	var tempURL ="http://www.glasscrafters.biz/Merchant2/gallery_view.mv?Picture_ID=" + pic_id;	if(br=="N"){		options="scrollbars,height=475,width=520";	}	else{		options="scrollbars,height=425,width=495";	}		if(!info || info.closed){		info = window.open(tempURL,"Info",options);		info.focus();	}	else{		info.location=(tempURL);		info.focus();	}}function openSplashScreen(){	var tempURL ="http://www.glasscrafters.biz/Merchant2/splash_screen.mv";	if(br=="N"){		options="scrollbars,height=475,width=520";	}	else{		options="scrollbars,height=425,width=495";	}	if(!info || info.closed){		info = window.open(tempURL,"Info",options);		info.focus();	}	else{		info.location=(tempURL);		info.focus();	}}function addToBasket(){	var quantity=document.ExpressForm.Quantity.value;	var Product_Code= document.ExpressForm.Product_Code.value.toUpperCase();	var tempURL ="http://www.glasscrafters.biz/Merchant2/order_form.mv?Screen=EXPR&Action=ADPR&Product_Code="+Product_Code+"&Quantity="+quantity;	if(!info || info.closed){		info = window.open(tempURL,"Info","menubar,height=425,width=495");		info.focus();	}	else{		info.location=(tempURL);		info.focus();	}}function openTellAFriend(code){	if(code==""){		var tempURL ="tellafriend.mv?";	}	else{		var tempURL ="tellafriend.mv?Product_Code="+code;	}		if(!info || info.closed){		info = window.open(tempURL,"Info","menubar,height=425,width=495");		info.focus();	}	else{		info.location=(tempURL);		info.focus();	}}function validateEmail(email){	email.value=email.value.toLowerCase();	if (email.value.length > 9){		if((email.value.indexOf("@") > 1) && (email.value.indexOf(".") > 0)){			return true;				}		else{			alert("Invalid email address format. Should be in the form of \'user@domain.com\'.");			email.focus();			return false;		}	}	else if (email.value.length > 0) {		alert("Invalid email address format. Should be in the form of \'user@domain.com\'.");		email.focus();		return false;	}	return false;}function updateState() {	var vSelectedCountryIndex = document.customer_info.ShipCountry.selectedIndex;	var vSelectedStateIndex = document.customer_info.ShipStateSelect.selectedIndex;	if((document.customer_info.ShipCountry.options[vSelectedCountryIndex].text != "United States")) {		if((document.customer_info.ShipStateSelect.options[vSelectedStateIndex].text != "Outside US")){			document.customer_info.ShipStateSelect.options[0].selected = true;		}	}	else if(document.customer_info.ShipStateSelect.options[vSelectedStateIndex].text == "Outside US"){		document.customer_info.ShipState.value = ""		alert("Please select an US State for billing from the popup menu");	}		var myObj = new getObj("ShipURBPrompt");	if(document.customer_info.ShipCountry.options[vSelectedCountryIndex].text == "Puerto Rico") {		myObj.style.visibility = 'visible'; 		document.customer_info.ShipUrbanization.style.visibility='visible'; 		alert("Please enter the urbanization code for your Puerto Rican billing address.");	}	else{		myObj.style.visibility = 'hidden'; 		document.customer_info.ShipUrbanization.style.visibility = 'hidden'; 		document.customer_info.ShipUrbanization.value = '';	}	var vSelectedBillCountryIndex = document.customer_info.BillCountry.selectedIndex;	var vSelectedBillStateIndex = document.customer_info.BillStateSelect.selectedIndex;		if(document.customer_info.BillCountry.options[vSelectedBillCountryIndex].text != "United States") {		if(document.customer_info.BillStateSelect.options[vSelectedBillStateIndex].text != "Outside US"){			document.customer_info.BillStateSelect.options[0].selected = true;		}	}	else if(document.customer_info.BillStateSelect.options[vSelectedBillStateIndex].text == "Outside US"){		document.customer_info.BillState.value = "";		alert("Please select an US State for shipping from the popup menu");	}	var myObj = new getObj("BillURBPrompt");	if(document.customer_info.BillCountry.options[vSelectedBillCountryIndex].text == "Puerto Rico") {		myObj.style.visibility = 'visible'; 		document.customer_info.BillUrbanization.style.visibility = 'visible'; 		alert("Please enter the urbanization code for your Puerto Rican shipping address.");	}	else{		myObj.style.visibility = 'hidden'; 		document.customer_info.BillUrbanization.style.visibility = 'hidden'; 		document.customer_info.BillUrbanization.value = '';	}}function updateCustomerState() {	var vSelectedCountryIndex=document.customer_info.Customer_ShipCountry.selectedIndex;	var vSelectedStateIndex=document.customer_info.Customer_ShipStateSelect.selectedIndex;	if( document.customer_info.Customer_ShipCountry.options[vSelectedCountryIndex].text != "United States" ) {		if( document.customer_info.Customer_ShipStateSelect.options[vSelectedStateIndex].text != "Outside US" ){			document.customer_info.Customer_ShipStateSelect.options[0].selected = true;		}	}	else if( document.customer_info.Customer_ShipStateSelect.options[vSelectedStateIndex].text == "Outside US" ){		document.customer_info.Customer_BillState.value = "";		alert("Please select an US State for billing from the popup menu");	}	var vSelectedBillCountryIndex=document.customer_info.Customer_BillCountry.selectedIndex	var vSelectedBillStateIndex=document.customer_info.Customer_BillStateSelect.selectedIndex	if(document.customer_info.Customer_BillCountry.options[vSelectedBillCountryIndex].text != "United States" ) {		if( document.customer_info.Customer_BillStateSelect.options[vSelectedBillStateIndex].text != "Outside US" ){			document.customer_info.Customer_BillStateSelect.options[0].selected = true;		}	}	else if( document.customer_info.Customer_BillStateSelect.options[vSelectedBillStateIndex].text == "Outside US" ){		document.customer_info.Customer_BillState.value = "";		alert("Please select an US State for shipping from the popup menu");	}}function updateCountry() {	var vSelected=document.customer_info.ShipStateSelect.selectedIndex;	if(!(document.customer_info.ShipStateSelect.options[vSelected].text == "Outside US")) {		document.customer_info.ShipState.value = "";		if(!(document.customer_info.ShipCountry.options[document.customer_info.ShipCountry.selectedIndex].text=="United States")){			for(i=0;i<= document.customer_info.ShipCountry.length;i++){				if(document.customer_info.ShipCountry.options[i].text=="United States"){					document.customer_info.ShipCountry.options[i].selected = true;					break;				}			}		}	}	else{		document.customer_info.ShipCountry.options[0].selected=true;	}	var vSelected=document.customer_info.BillStateSelect.selectedIndex;	if(!(document.customer_info.BillStateSelect.options[vSelected].text == "Outside US")) {		document.customer_info.BillState.value = "";		if(!(document.customer_info.BillCountry.options[document.customer_info.BillCountry.selectedIndex].text=="United States")){			document.customer_info.BillState.value = "";			for(i=0;i<= document.customer_info.BillCountry.length;i++){				if(document.customer_info.BillCountry.options[i].text=="United States"){					document.customer_info.BillCountry.options[i].selected = true;					break;				}			}		}	}	else{		document.customer_info.BillCountry.options[0].selected=true;	}}function updateCustomerCountry() {	var vSelected=document.customer_info.Customer_ShipStateSelect.selectedIndex;	if(!(document.customer_info.Customer_ShipStateSelect.options[vSelected].text == "Outside US")) {		document.customer_info.Customer_ShipState.value = "";		if(!(document.customer_info.Customer_ShipCountry.options[document.customer_info.Customer_ShipCountry.selectedIndex].text=="United States")){			for(i=0;i<= document.customer_info.Customer_ShipCountry.length;i++){				if(document.customer_info.Customer_ShipCountry.options[i].text=="United States"){					document.customer_info.Customer_ShipCountry.options[i].selected = true;					break;				}			}		}	}	else{		document.customer_info.Customer_ShipCountry.options[0].selected=true;	}	var vSelected=document.customer_info.Customer_BillStateSelect.selectedIndex;	if(!(document.customer_info.Customer_BillStateSelect.options[vSelected].text == "Outside US")) {		document.customer_info.Customer_BillState.value = "";		if(!(document.customer_info.Customer_BillCountry.options[document.customer_info.Customer_BillCountry.selectedIndex].text=="United States")){			for(i=0;i<= document.customer_info.Customer_BillCountry.length;i++){				if(document.customer_info.Customer_BillCountry.options[i].text=="United States"){					document.customer_info.Customer_BillCountry.options[i].selected = true;					break;				}			}		}	}	else{		document.customer_info.Customer_BillCountry.options[0].selected=true;	}}var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)var enableanchorlink=0 //Enable or disable the anchor link when clicked on? (1=e, 0=d)var hidemenu_onclick=1 //hide menu when user clicks within menu? (1=yes, 0=no)/////No further editting neededvar ie5=document.allvar ns6=document.getElementById&&!document.all/*function getposOffset(what, offsettype){var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;var parentEl=what.offsetParent;while (parentEl!=null){totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;parentEl=parentEl.offsetParent;}return totaloffset;}*/function getposOffset(what, offsettype){	var totaloffset=(offsettype == "left")? what.offsetLeft : what.offsetTop;	var parentEl = what.offsetParent;	var last = (offsettype == "left")? what.offsetLeft : what.offsetTop;	while ((parentEl != null)&& (parentEl.id != "outerDiv")) {		if(offsettype == "left") {			totaloffset = totaloffset + parentEl.offsetLeft;			last = parentEl.offsetLeft;		}		else {			totaloffset = totaloffset + parentEl.offsetTop;			last = parentEl.offsetTop;		}		parentEl = parentEl.offsetParent;			}	return totaloffset;}function showhide(obj, e, visible, hidden){if (ie5||ns6)dropmenuobj.style.left=dropmenuobj.style.top=-500+'px'if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")obj.visibility=visibleelse if (e.type=="click")obj.visibility=hidden}function iecompattest(){return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body}function clearbrowseredge(obj, whichedge){var edgeoffset=0if (whichedge=="rightedge"){var windowedge=ie5 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15dropmenuobj.contentmeasure=dropmenuobj.offsetWidthif (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth}else{var topedge=ie5 && !window.opera? iecompattest().scrollTop : window.pageYOffsetvar windowedge=ie5 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18dropmenuobj.contentmeasure=dropmenuobj.offsetHeightif (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeightif ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge}}return edgeoffset}function dropdownmenu(obj, e, dropmenuID){if (window.event) event.cancelBubble=trueelse if (e.stopPropagation) e.stopPropagation()if (typeof dropmenuobj!="undefined") //hide previous menudropmenuobj.style.visibility="hidden"clearhidemenu()if (ie5||ns6){obj.onmouseout=delayhidemenudropmenuobj=document.getElementById(dropmenuID)if (hidemenu_onclick) dropmenuobj.onclick=function(){dropmenuobj.style.visibility='hidden'}dropmenuobj.onmouseover=clearhidemenudropmenuobj.onmouseout=ie5? function(){ dynamichide(event)} : function(event){ dynamichide(event)}showhide(dropmenuobj.style, e, "visible", "hidden")dropmenuobj.x=getposOffset(obj, "left")dropmenuobj.y=getposOffset(obj, "top")dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")-1+"px"dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"}return clickreturnvalue()}function clickreturnvalue(){if ((ie5||ns6) && !enableanchorlink) return falseelse return true}function contains_ns6(a, b) {while (b.parentNode)if ((b = b.parentNode) == a)return true;return false;}function dynamichide(e){if (ie5&&!dropmenuobj.contains(e.toElement))delayhidemenu()else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))delayhidemenu()}function delayhidemenu(){delayhide=setTimeout("dropmenuobj.style.visibility='hidden'",disappeardelay)}function clearhidemenu(){if (typeof delayhide!="undefined")clearTimeout(delayhide)}