browserName = navigator.appName;browserVer = parseInt(navigator.appVersion);if (browserName == "Netscape" && browserVer >= 3) version="n3";else if (browserName == "Microsoft Internet Explorer" && browserVer >= 3) version="e3";else version="n2";submitcount=0;//images functionsimages = Array();function img_act(imgName) {      if (version == "n3" || version == "e3") {	  document[imgName].src = "customer/s280_commerce/images/" + imgName + "on.gif";      }};function img_inact(imgName) {  if (version == "n3" || version == "e3") {	  document[imgName].src = "customer/s280_commerce/images/" + imgName + "off.gif";  }};productsMenuTimeout=0;function showProductsMenu(){  clearTimeout(productsMenuTimeout);  $("#products-menu")    .css('opacity','0.9')    .css('left',$(arguments[0]).offset().left + 'px')    .css('top',($(arguments[0]).offset().top+$(arguments[0]).height()) + 'px')    .show();}function hideProductsMenu(){  productsMenuTimeout=setTimeout('$("#products-menu").hide()',1000);}//Header funcsfunction loginFocus(){  $(arguments[0]).removeClass('label');}function loginBlur(){  if(arguments[0].value == ''){    $(arguments[0]).addClass('label');  }}function inputFocus(){  if(arguments[0].value == arguments[1]){    arguments[0].value = "";    $(arguments[0]).addClass('focus');  }};function inputBlur(){  if(arguments[0].value == ''){    arguments[0].value = arguments[1];    $(arguments[0]).removeClass('focus');  }};function passwordFocus() {  if(arguments[0].value == 'password'){    $("#j_password").addClass('focus');    $("#j_password").val("");    $("#fauxpassword").css("display","none");    $("#j_password").css("display","inline");    setTimeout("document.getElementById('j_password').focus()",1);  }  };function passwordBlur() {  if(arguments[0].value == ''){    $("#j_password").css("display","none");    $("#fauxpassword").css("display","inline");  }};//form funcsfunction focusFirst() {      if ((document.forms.length > 0) &&	  (document.forms[0].elements.length > 0))	for (var i = 0; i < document.forms[0].elements.length; i++) {	    if ((document.forms[0].elements[i].type == "text") ||		(document.forms[0].elements[i].type == "textarea")) {		document.forms[0].elements[i].focus();		break;	    }	}};function checkSubmitOnce() {      if (submitcount == 0) {          submitcount++;      	  return true;      } else {          alert("This form has already been submitted.  Thanks!");      	  return false;      }};function checkTextareaLength(textareaObj, maxlength) { 	if (textareaObj.value.length > maxlength) {    		alert("Please limit your submission for " + textareaObj.name + " to " + maxlength + " characters.\n(Your submission is " + (textareaObj.value.length - maxlength) + " characters too long.)" );    		textareaObj.focus();    		return false; 	} 	return true;};function preLoad(pImg) {  for(var i=0;i<images.length;i++)    if(images[i].src == pImg) return false;	images[images.length] = new Image();	images[images.length-1].src = pImg;};function popupInfo(pAnchor) {	window.open(pAnchor.href,'newWindow',		'menubar=no,location=no,resizable=yes,scrollbars=yes,status=no,width=380,height=500');	return false;};// Cookie functions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 eraseCookie(name) {	createCookie(name,"",-1);};
