
function submitFormCheck(form,msg){if(confirm(msg)){document.forms[form].submit();return;}
else
return false;}
function submitForm(f){document.forms[f].submit();}
function getFlash(id,file,title,w,h,wmode){var idC=document.getElementById(id);var cont;cont="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase="+"'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0' "+"width='"+w+"' height='"+h+"' title='"+title+"' id='"+id+"SWF'>"+"<param name='movie' value='"+file+"' />"+"<param name='allowScriptAccess' value='always' />"+"<param name='quality' value='high' />"+"<param name='wmode' value='"+wmode+"' />"+"<embed src='"+file+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer'"+"type='application/x-shockwave-flash' width='"+w+"' height='"+h+"' allowScriptAccess='always' name='"+id+"SWF' swLiveConnect='true' wmode='"+wmode+"' />"+"</object>";idC.innerHTML=cont;}
function changeBg(form,field,requiredFields,fieldNames)
{var c,i,z,r;r=0,empty=false;for(i=0;i<form.length;i++)
{if(field.name==form[i].name)
{break;}}
msg="";c=0;for(t=0;t<i;t++)
{if((form[t].value=="")||(form[t].value==null))
{for(z=0;z<requiredFields.length;z++)
{if(form[t].name==requiredFields[z])
{msg+="'"+fieldNames[z]+":'\n";c++;if(empty==false){empty=true;r=t;}}}}}
if(c==1){alert("Please complete the required field:\n\n"+msg);restoreBg(field);form.elements[r].focus();}
else if(c>1){alert("Please complete the required fields:\n\n"+msg);restoreBg(field);form.elements[r].focus();}}
function restoreBg(obj)
{}
function isEmpty(data){if((data==null)||(data=="")||(data.length<1))
return(true);else return(false);}
function date1()
{var d,s="";var month=["January","February","March","April","May","June","July","August","September","October","November","December"];var day=["Sunday","Monday","Tuesday","Wenesday","Thursday","Friday","Saturday"];d=new Date();s+=d.getDate()+" ";s+=month[(d.getMonth())]+" ";s+=d.getFullYear();return(s)}
function year()
{var d,s="";d=new Date();s+=d.getFullYear();return(s)}<!--Begin
function emailCheck(emailStr){var checkTLD=1;var knownDomsPat=/^(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum)$/;var emailPat=/^(.+)@(.+)$/;var specialChars="\\(\\)><@,;:\\\\\\\"\\.\\[\\]";var validChars="\[^\\s"+specialChars+"\]";var quotedUser="(\"[^\"]*\")";var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;var atom=validChars+'+';var word="("+atom+"|"+quotedUser+")";var userPat=new RegExp("^"+word+"(\\."+word+")*$");var domainPat=new RegExp("^"+atom+"(\\."+atom+")*$");var matchArray=emailStr.match(emailPat);if(matchArray==null){alert("Email address seems incorrect (check @ and .'s)");return false;}
var user=matchArray[1];var domain=matchArray[2];for(i=0;i<user.length;i++){if(user.charCodeAt(i)>127){alert("Email username contains invalid characters.");return false;}}
for(i=0;i<domain.length;i++){if(domain.charCodeAt(i)>127){alert("Email domain name contains invalid characters.");return false;}}
if(user.match(userPat)==null){alert("Email username doesn't seem to be valid.");return false;}
var IPArray=domain.match(ipDomainPat);if(IPArray!=null){for(var i=1;i<=4;i++){if(IPArray[i]>255){alert("Email destination IP address is invalid!");return false;}}
return true;}
var atomPat=new RegExp("^"+atom+"$");var domArr=domain.split(".");var len=domArr.length;for(i=0;i<len;i++){if(domArr[i].search(atomPat)==-1){alert("Email domain name does not seem to be valid.");return false;}}
if(checkTLD&&domArr[domArr.length-1].length!=2&&domArr[domArr.length-1].search(knownDomsPat)==-1){alert("The email address must end in a well-known domain or two letter "+"country.");return false;}
if(len<2){alert("The email address is missing a hostname!");return false;}
return true;}
function formCheck(formobj,fieldRequired,fieldDescription){var alertMsg="Please complete the following field(s):\n";var l_Msg=alertMsg.length;var groupChecked=false;for(var i=0;i<fieldRequired.length;i++){var obj=formobj.elements[fieldRequired[i]];if(obj){switch(obj.type){case"checkbox":if(obj.checked==false){alertMsg+=" - "+fieldDescription[i]+"\n";}
break;case"select-one":if(obj.selectedIndex==-1||obj.options[obj.selectedIndex].text==""){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";}
else if(fieldRequired[i]=="emailaddress"){if(!emailCheck(formobj.emailaddress.value))
return false;}
break;default:if(obj.value==""||obj.value==null){alertMsg+=" - "+fieldDescription[i]+"\n";}}}}
if(alertMsg.length==l_Msg){return true;}
else{alert(alertMsg);return false;}}
function pageSelect(pageForm){for(var i=0;i<document.sortProducts.sortRadio.length;i++)
{if(document.sortProducts.sortRadio[i].checked)
{pageForm.sort.value=document.sortProducts.sortRadio[i].value;}}
pageForm.submit();return(false);}
function pageSort(){for(var i=0;i<document.sortProducts.sortRadio.length;i++)
{if(document.sortProducts.sortRadio[i].checked)
{document.sortProducts.sort.value=document.sortProducts.sortRadio[i].value;}}
document.sortProducts.submit();}
