var promoArray2a,promoArray2b;function randomNumberForImage(num){promoArray2a=new Array(num);promoArray2b=new Array(num);return Math.floor(Math.random()*num+1);}function arrayOfBannerImage1(num,num1,num2){promoArray2a[num1]=num2;return promoArray2a[num];}function arrayOfBannerImage2(num,num1,num2){promoArray2b[num1]=num2;return promoArray2b[num];}function selected(form){for(var i=0;i<form.length;i++){var elementType=form.elements[i].type;if(elementType=='checkbox'){elementType=form.elements[i].checked=true;}}}function inputBoxBrowserSpecific(prodSearch){var sBrowser=navigator.appName+navigator.appVersion;if(sBrowser.indexOf("Netscape4")>-1){document.write('<input type="text" name="prodSearch" size="7"/>');}else{document.write('<input type="text" name="prodSearch" size="14"/>');}}function isValidEmailAddress(sEmailAdd){var aEmailElements=sEmailAdd.split('@');var nTotalElements=aEmailElements.length;if(nTotalElements==2){var aSecondPart=aEmailElements[1].split('.');if(aSecondPart.length>1){return true;}}return false;}function isAlphanumeric(s){defaultEmptyOK=true;if(isEmpty(s))if(isAlphanumeric.arguments.length==1)return defaultEmptyOK;else return(isAlphanumeric.arguments[1]==true);for(var i=0;i<s.length;i++){var c=s.charAt(i);if(!(isLetter(c)||isDigit(c)))return false;}return true;}function isEmpty(s){return((s==null)||(s.length==0));}function isLetter(c){return(((c>="a")&&(c<="z"))||((c>="A")&&(c<="Z")));}function isDigit(c){return((c>="0")&&(c<="9"));}function isInteger(s){var i,c;for(i=0;i<s.length;i++){c=s.charAt(i);if(((c<"0")||(c>"9")))return false;}return true;}function stripCharsInBag(s,bag){var i,c;var returnString="";for(i=0;i<s.length;i++){c=s.charAt(i);if(bag.indexOf(c)==-1)returnString+=c;}return returnString;}function isDate(dtStr){var dtCh="/";var minYear=1900;var maxYear=2100;var daysInMonth=DaysArray(12);var pos1=dtStr.indexOf(dtCh);var pos2=dtStr.indexOf(dtCh,pos1+1);var strMonth=dtStr.substring(0,pos1);var strDay=dtStr.substring(pos1+1,pos2);var strYear=dtStr.substring(pos2+1);strYr=strYear;if(strDay.charAt(0)=="0"&&strDay.length>1)strDay=strDay.substring(1);if(strMonth.charAt(0)=="0"&&strMonth.length>1)strMonth=strMonth.substring(1);for(var i=1;i<=3;i++){if(strYr.charAt(0)=="0"&&strYr.length>1)strYr=strYr.substring(1);}month=parseInt(strMonth);day=parseInt(strDay);year=parseInt(strYr);if(pos1==-1||pos2==-1){return false;}if(strMonth.length<1||month<1||month>12){return false;}if(strDay.length<1||day<1||day>31||(month==2&&day>daysInFebruary(year))||day>daysInMonth[month]){return false;}if(strYear.length!=4||year==0||year<minYear||year>maxYear){return false;}if(dtStr.indexOf(dtCh,pos2+1)!=-1||isInteger(stripCharsInBag(dtStr,dtCh))==false){return false;}return true;}function buildButton(sURL,sCaption,eButtonColor,eButtonType,sFormName,sButtonName,bHiddenAfterClick){var sURLToUse;switch(eButtonType){case 0:sURLToUse="javascript:window.close();";break;case 2:sURLToUse="javascript:window.print();";break;case 3:sURLToUse="javascript:buttonResetFn(\""+sFormName+"\", \""+sButtonName+"\");";break;case 4:sURLToUse="javascript:buttonSubmitFn(\""+sFormName+"\", \""+sButtonName+"\");";break;case 1:default:var sURLToUse=sURL;break;}switch(eButtonColor){case 1:sHoldColor1="#c3c3c3";sHoldColor2="#686868";break;case 0:default:sHoldColor1="#FF0000";sHoldColor2="#990000";break;}document.write("<TABLE BORDER='0' CELLPADDING='0' CELLSPACING='0'>");document.write("<TR><TD BGCOLOR='#000000' ALIGN='center' COLSPAN='3'>");document.write("<IMG SRC='/images/world/s/spacer.gif' ALT='' BORDER='0'/></TD></TR>");document.write("<TR><TD BGCOLOR='#000000' ALIGN='center' WIDTH='1'>");document.write("<IMG SRC='/images/world/s/spacer.gif' WIDTH='1' ALT='' BORDER='0'/></TD>");document.write("<TD BGCOLOR='#686868' ALIGN='center'>");document.write("<TABLE BORDER='0' CELLPADDING='0' CELLSPACING='0'>");document.write("<TR><TD BGCOLOR='#686868' ALIGN='center'>");document.write("<TABLE BORDER='0' CELLPADDING='0' CELLSPACING='0'>");document.write("<TR><TD BGCOLOR='"+sHoldColor1+"' ALIGN='center' COLSPAN='3'>");document.write("<IMG SRC='/images/world/s/spacer.gif' ALT='' BORDER='0' />");document.write("</TD></TR>");document.write("<TR><TD BGCOLOR='"+sHoldColor1+"' ALIGN='center' WIDTH='1'>");document.write("<IMG SRC='/images/world/s/spacer.gif' WIDTH='1' ALT='' BORDER='0'/></TD>");document.write("<TD BGCOLOR='#686868' ALIGN='center'>");document.write("<TABLE BORDER='0' CELLPADDING='0' CELLSPACING='0'>");if(bHiddenAfterClick==1){document.write("<TR><TD BGCOLOR='"+sHoldColor2);document.write("' ALIGN='center'  "," onClick=this.style.visibility='hidden'; >");}else{document.write("<TR><TD BGCOLOR='"+sHoldColor2+"' ALIGN='center'>");}document.write("<B>  <A HREF='../index_elemei/"+sURLToUse+"' CLASS='button'>");document.write("<FONT FACE='Verdana, Arial, Helvetica, Sans-Serif' COLOR='#FFFFFF' SIZE='-1'>");document.write("<SPAN CLASS='buttonhover'>");document.write(sCaption+"</SPAN></FONT></A>  </B>");document.write("</TD></TR></TABLE></TD>");document.write("<TD BGCOLOR='#000000' ALIGN='center' WIDTH='1'>");document.write("<IMG SRC='/images/world/s/spacer.gif' WIDTH='1' ALT='' BORDER='0'/></TD></TR>");document.write("<TR><TD BGCOLOR='",sHoldColor1,"' ALIGN='center' WIDTH='1'>");document.write("<IMG SRC='/images/world/s/spacer.gif' ALT='' BORDER='0'/></TD>");document.write("<TD BGCOLOR='#000000' ALIGN='center' COLSPAN='2'>");document.write("<IMG SRC='/images/world/s/spacer.gif' ALT='' BORDER='0' />");document.write("</TD></TR></TABLE> </TD></TR></TABLE></TD>");document.write("<TD BGCOLOR='#000000' ALIGN='center' WIDTH='1'>");document.write("<IMG SRC='/images/world/s/spacer.gif' WIDTH='1' ALT='' BORDER='0'/>");document.write("</TD></TR><TR>");document.write("<TD BGCOLOR='#000000' ALIGN='center' COLSPAN='3'>");document.write("<IMG SRC='/images/world/s/spacer.gif' ALT='' BORDER='0'/>");document.write("</TD></TR></TABLE>");document.write("<INPUT type='hidden' value='0' name='");document.write(sButtonName);document.write("'>");}function buttonSubmitFn(sForm,sButton){eval("document."+sForm+"."+sButton+".value = 1;");eval("document."+sForm+".submit();");}function buttonResetFn(sForm,sButton){eval("document."+sForm+"."+sButton+".value = 1;");eval("document."+sForm+".reset();");}var oEventStarts=new Object();function eventStart(sEvent){if(eval("typeof(oEventStarts.a"+sEvent+")")=="undefined"){eval("oEventStarts.a"+sEvent+" = new Array();");}var iLen=eval("oEventStarts.a"+sEvent+".length");if(iLen>0){for(var i=0;i<iLen;i++){eval("oEventStarts.a"+sEvent+'['+i+"]();");}}}function addEventFunction(sEvent,sFunction){if(eval("typeof(oEventStarts.a"+sEvent+")")=="undefined"){eval("oEventStarts.a"+sEvent+" = new Array();");}eval("oEventStarts.a"+sEvent+"[oEventStarts.a"+sEvent+".length] = "+sFunction+";");}function getCookie(sCookieName){var sResult="";var sCookies=document.cookie;var iStart=sCookies.indexOf(sCookieName);if(iStart==-1){return sResult;}var iEnd=sCookies.indexOf(";",iStart);if(iEnd==-1){iEnd=sCookies.length;}sResult=sCookies.substring(iStart+sCookieName.length+1,iEnd);return sResult;}function WindowPopup(Name,Parameters){window.open((Name),"popup",(Parameters));}function GlobalSubmit(){if(document.GlobalNav.GlobalNavMenu.selectedIndex>0){document.GlobalNav.submit();}}function go_country_menu(menu){var choice=menu.selectedIndex;var new_url=menu.options[choice].value;if(new_url!="")window.location.href=new_url;}function englishPopup(sPopupURL){var allCookies=document.cookie;var isSet=allCookies.indexOf("langWarningChecked");if(isSet=='-1'){WindowPopup(sPopupURL+"template/017.jsp?view=Lang_Warning",'width=500,height=350,top=0,left=0,scrollbars=yes,resizable=yes,toolbar=no,status=yes,menubar=no');}}function swap(name,offimage){newimage=new Image();newimage.src=offimage;document[name].src=newimage.src;}function thePopupImg(sIMG){WindowPopup(sIMG,'toolbar=no,resizable=yes,scrollbars=yes,width=350,height=350');}var g_bFlashDetected=false;if(navigator.mimeTypes&&navigator.mimeTypes['application/x-shockwave-flash']&&navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin){if(navigator.plugins&&navigator.plugins['Shockwave Flash']){g_bFlashDetected=true;}}else if(navigator.userAgent&&navigator.userAgent.indexOf('MSIE')>=0&&(navigator.userAgent.indexOf('Windows 95')>=0||navigator.userAgent.indexOf('Windows 98')>=0||navigator.userAgent.indexOf('Windows NT')>=0)){document.writeln('<SCRIPT type="text/vbscript"\> ');document.writeln('on error resume next ');document.writeln('g_bFlashDetected = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3")))');document.writeln('if ( g_bFlashDetected <= 0 ) then g_bFlashDetected = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4")))');document.writeln('if ( g_bFlashDetected <= 0 ) then g_bFlashDetected = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")))');document.writeln('</SCRIPT>');}var MONTH_NAMES=new Array('January','February','March','April','May','June','July','August','September','October','November','December','Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');function LZ(x){return(x<0||x>9?"":"0")+x;}function isValidDate(val,format){var date=getDateFromFormat(val,format);if(date==0){return false;}return true;}function compareDates(date1,dateformat1,date2,dateformat2){var d1=getDateFromFormat(date1,dateformat1);var d2=getDateFromFormat(date2,dateformat2);if(d1==0||d2==0){return-1;}else if(d1>d2){return 1;}return 0;}function _isInteger(val){var digits="1234567890";for(var i=0;i<val.length;i++){if(digits.indexOf(val.charAt(i))==-1){return false;}}return true;}function _getInt(str,i,minlength,maxlength){for(var x=maxlength;x>=minlength;x--){var token=str.substring(i,i+x);if(token.length<minlength){return null;}if(_isInteger(token)){return token;}}return null;}function getDateFromFormat(val,format){val=val+"";format=format+"";var i_val=0;var i_format=0;var c="";var token="";var token2="";var x,y;var now=new Date();var year=now.getYear();var month=now.getMonth()+1;var date=now.getDate();var hh=now.getHours();var mm=now.getMinutes();var ss=now.getSeconds();var ampm="";while(i_format<format.length){c=format.charAt(i_format);token="";while((format.charAt(i_format)==c)&&(i_format<format.length)){token+=format.charAt(i_format++);}if(token=="yyyy"||token=="yy"||token=="y"){if(token=="yyyy"){x=4;y=4;}if(token=="yy"){x=2;y=2;}if(token=="y"){x=2;y=4;}year=_getInt(val,i_val,x,y);if(year==null){return 0;}i_val+=year.length;if(year.length==2){if(year>70){year=1900+(year-0);}else{year=2000+(year-0);}}}else if(token=="MMM"){month=0;for(var i=0;i<MONTH_NAMES.length;i++){var month_name=MONTH_NAMES[i];if(val.substring(i_val,i_val+month_name.length).toLowerCase()==month_name.toLowerCase()){month=i+1;if(month>12){month-=12;}i_val+=month_name.length;break;}}if((month<1)||(month>12)){return 0;}}else if(token=="MM"||token=="M"){month=_getInt(val,i_val,token.length,2);if(month==null||(month<1)||(month>12)){return 0;}i_val+=month.length;}else if(token=="dd"||token=="d"){date=_getInt(val,i_val,token.length,2);if(date==null||(date<1)||(date>31)){return 0;}i_val+=date.length;}else if(token=="hh"||token=="h"){hh=_getInt(val,i_val,token.length,2);if(hh==null||(hh<1)||(hh>12)){return 0;}i_val+=hh.length;}else if(token=="HH"||token=="H"){hh=_getInt(val,i_val,token.length,2);if(hh==null||(hh<0)||(hh>23)){return 0;}i_val+=hh.length;}else if(token=="KK"||token=="K"){hh=_getInt(val,i_val,token.length,2);if(hh==null||(hh<0)||(hh>11)){return 0;}i_val+=hh.length;}else if(token=="kk"||token=="k"){hh=_getInt(val,i_val,token.length,2);if(hh==null||(hh<1)||(hh>24)){return 0;}i_val+=hh.length;hh--;}else if(token=="mm"||token=="m"){mm=_getInt(val,i_val,token.length,2);if(mm==null||(mm<0)||(mm>59)){return 0;}i_val+=mm.length;}else if(token=="ss"||token=="s"){ss=_getInt(val,i_val,token.length,2);if(ss==null||(ss<0)||(ss>59)){return 0;}i_val+=ss.length;}else if(token=="a"){if(val.substring(i_val,i_val+2).toLowerCase()=="am"){ampm="AM";}else if(val.substring(i_val,i_val+2).toLowerCase()=="pm"){ampm="PM";}else{return 0;}i_val+=2;}else{if(val.substring(i_val,i_val+token.length)!=token){return 0;}else{i_val+=token.length;}}}if(i_val!=val.length){return 0;}if(month==2){if(((year%4==0)&&(year%100!=0))||(year%400==0)){if(date>29){return false;}}else{if(date>28){return false;}}}if((month==4)||(month==6)||(month==9)||(month==11)){if(date>30){return false;}}if(hh<12&&ampm=="PM"){hh=hh-0+12;}else if(hh>11&&ampm=="AM"){hh-=12;}var newdate=new Date(year,month-1,date,hh,mm,ss);return newdate.getTime();}function formatDate(date,format){format=format+"";var result="";var i_format=0;var c="";var token="";var y=date.getYear()+"";var M=date.getMonth()+1;var d=date.getDate();var H=date.getHours();var m=date.getMinutes();var s=date.getSeconds();var yyyy,yy,MMM,MM,dd,hh,h,mm,ss,ampm,HH,H,KK,K,kk,k;var value=new Object();if(y.length<4){y=""+(y-0+1900);}value["y"]=""+y;value["yyyy"]=y;value["yy"]=y.substring(2,4);value["M"]=M;value["MM"]=LZ(M);value["MMM"]=MONTH_NAMES[M-1];value["d"]=d;value["dd"]=LZ(d);value["H"]=H;value["HH"]=LZ(H);if(H==0){value["h"]=12;}else if(H>12){value["h"]=H-12;}else{value["h"]=H;}value["hh"]=LZ(value["h"]);if(H>11){value["K"]=H-12;}else{value["K"]=H;}value["k"]=H+1;value["KK"]=LZ(value["K"]);value["kk"]=LZ(value["k"]);if(H>11){value["a"]="PM";}else{value["a"]="AM";}value["m"]=m;value["mm"]=LZ(m);value["s"]=s;value["ss"]=LZ(s);while(i_format<format.length){c=format.charAt(i_format);token="";while((format.charAt(i_format)==c)&&(i_format<format.length)){token+=format.charAt(i_format++);}if(value[token]!=null){result=result+value[token];}else{result=result+token;}}return result;}

function winopen(o1,o2,o3,o4,o5,o6,o7,o8,o9,o10,o11,o12,o13,o14,o15,o16,o17,o18) {
	var url="";
	for(var k=3;k<=18;k++) {
		if(eval("o"+k)) {
		url=url+eval("o"+k);
		}
	}
	window.open(url,eval("o"+1),eval("o"+2));
}