function GetXmlHttpObject(handler) { var objXmlHttp=null; objXmlHttp=new XMLHttpRequest(); objXmlHttp.onreadystatechange=handler; return objXmlHttp; } var xmlHttp /*@cc_on @*/ /*@if (@_jscript_version >= 5) try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP") } catch (e) { try { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP") } catch (E) { xmlHttp=false } } @else xmlHttp=false @end @*/ if (!xmlHttp) { try { xmlHttp = new XMLHttpRequest(); } catch (e) { xmlHttp=false } } function toggleFaq(id) { if(document.getElementById(id).style.display == 'none') { document.getElementById(id).style.display = ''; } else { document.getElementById(id).style.display = 'none'; } } function countdown() { document.write('\n'); document.write('\n'); document.write('\n'); document.write('\n'); } function tp_popup(url) { fenster = window.open(url, "", "width=865,height=470,status=yes,scrollbars=yes,resizable=yes"); fenster.focus(); } function winopen(theURL, Name, popW, popH, scroll) { var winleft = (screen.width - popW) / 2; var winUp = (screen.height - popH) / 2; winProp = 'width='+popW+',height='+popH+',left='+winleft+',top='+winUp+',scrollbars='+scroll+',resizable='+scroll Win = window.open(theURL, Name, winProp) } function slidelink(){ if (whichimage==1) window.open('http://www.saucony.com') else if (whichimage==2) window.open('http://www.saucony.com') else if (whichimage==3) window.open('http://www.saucony.com') else if (whichimage==4) window.open('http://www.rotana.com') else if (whichimage==5) window.open('http://www.rotana.com') else if (whichimage==6) window.open('http://www.rotana.com') else if (whichimage==7) window.open('http://www.mensfitness.com') else if (whichimage==8) window.open('http://www.mensfitness.com') else if (whichimage==9) window.open('http://www.mensfitness.com') else if (whichimage==10) window.open('http://www.championchipuae.com') else if (whichimage==11) window.open('http://www.championchipuae.com') else if (whichimage==12) window.open('http://www.championchipuae.com') else if (whichimage==13) window.open('http://www.alainwater.com') else if (whichimage==14) window.open('http://www.alainwater.com') else if (whichimage==15) window.open('http://www.alainwater.com') else if (whichimage==16) window.open('http://www.capri-sun.co.uk') else if (whichimage==17) window.open('http://www.capri-sun.co.uk') else if (whichimage==18) window.open('http://www.capri-sun.co.uk') else if (whichimage==19) window.open('http://www.thenational.ae') else if (whichimage==20) window.open('http://www.thenational.ae') else if (whichimage==21) window.open('http://www.thenational.ae') else if (whichimage==22) window.open('http://www.rakhospital.com') else if (whichimage==23) window.open('http://www.rakhospital.com') else if (whichimage==24) window.open('http://www.rakhospital.com') } function countdownRegTime() { var end = new Date('December 18, 2009 23:59:00'); function toSt2(n) { s = ''; if (n < 10) s += '0'; return (s + n).toString(); } function toSt3(n) { s = ''; if (n < 10) s += '00'; else if (n < 100) s += '0'; return (s + n).toString(); } d = new Date(); count = Math.floor(end.getTime() - d.getTime()); if(count > 0) { miliseconds = toSt3(count%1000); count = Math.floor(count/1000); seconds = toSt2(count%60); count = Math.floor(count/60); minutes = toSt2(count%60); count = Math.floor(count/60); hours = toSt2(count%24); count = Math.floor(count/24); days = count; document.getElementById('c1').innerHTML = days; document.getElementById('c2').innerHTML = hours; document.getElementById('c3').innerHTML = minutes; document.getElementById('c4').innerHTML = seconds; setTimeout('countdownRegTime()', 100); } } function initialCap(mystring) { var sp = mystring.value.split(' '); var wl=0; var f ,r; var word = new Array(); for (i = 0 ; i < sp.length ; i ++ ) { f = sp[i].substring(0,1).toUpperCase(); r = sp[i].substring(1); word[i] = f+r; } newstring = word.join(' '); mystring.value = newstring; } function numericVal(obj) { var tam = obj.value.length; var numeric = false; for(var i=0;i= 40 && caracter <= 57) || caracter == 32) numeric = true; else { obj.value=obj.value.substring(0,tam-1); numericVal(obj); } } } function numericValNumbersOnly(obj) { var tam = obj.value.length; var numeric = false; for(var i=0;i= 48 && caracter <= 57) numeric = true; else { obj.value=obj.value.substring(0,tam-1); numericVal(obj); } } }