var NORPP,KL,DWS,DOINW,SS,DSKH,BROWSER,CP;var qsParm={};var csParm={};function SetHomePage(){var A=document.getElementById("ctl00_HomePageLink");if(BROWSER=="IE"){A.style.behavior="url(#default#homepage)";A.setHomePage("http://search.webdunia.com/")}else{alert("If you want to make Webdunia Search as your Homepage in Firefox, just drag the Webdunia Logo to 'Home' icon of your browser");return }}function SubmitToPreferences(){window.location.href="/preferences.aspx?lid="+KL}function trim(A){return A.replace(/^\s*(.*?)\s*$/,"$1")}function gpid(){var A="1";if(document.getElementById("gpid")!=null){A=document.getElementById("gpid").value}else{if(window.location.href.toLowerCase().indexOf("default.aspx")>0){A="1"}if(window.location.href.toLowerCase().indexOf("default.htm")>0){A="1"}if(window.location.href.toLowerCase().indexOf("hindi.html")>0){A="1"}if(window.location.href.toLowerCase().indexOf("tamil.html")>0){A="1"}if(window.location.href.toLowerCase().indexOf("gujarati.html")>0){A="1"}if(window.location.href.toLowerCase().indexOf("punjabi.html")>0){A="1"}if(window.location.href.toLowerCase().indexOf("bengali.html")>0){A="1"}if(window.location.href.toLowerCase().indexOf("kannada.html")>0){A="1"}if(window.location.href.toLowerCase().indexOf("telugu.html")>0){A="1"}if(window.location.href.toLowerCase().indexOf("marathi.html")>0){A="1"}if(window.location.href.toLowerCase().indexOf("malayalam.html")>0){A="1"}if(window.location.href.toLowerCase().indexOf("english.html")>0){A="1"}if(window.location.href.toLowerCase().indexOf("/related/")>0){A="2"}if(window.location.href.toLowerCase().indexOf("/more/")>0){A="2"}if(window.location.href.toLowerCase().indexOf("/dum/")>0){A="2"}if(window.location.href.toLowerCase().indexOf("/popular-keywords/")>0){A="2"}if(window.location.href.toLowerCase().indexOf("/tag/")>0){A="2"}if(window.location.href.toLowerCase().indexOf("searcherror.aspx")>0){A="3"}if(window.location.href.toLowerCase().indexOf("search.aspx")>0){A="2"}if(window.location.href.toLowerCase().indexOf("popularsearches.aspx")>0){A="2"}if(window.location.href.toLowerCase().indexOf("popular.aspx")>0){A="2"}if(window.location.href.toLowerCase().indexOf("searchen.aspx")>0){A="2"}if(window.location.href.toLowerCase().indexOf("preferences.aspx")>0){A="4"}if(window.location.href.toLowerCase().indexOf("usersubmitsite.aspx")>0){A="4"}if(window.location.href.toLowerCase().indexOf("customize.aspx")>0){A="4"}if(window.location.href.toLowerCase().indexOf("faq.htm")>0){A="5"}}return A}function lp(){try{switch(gpid()){case"1":loadControlNew("q","outDiv",KL,"S","kb_div");break;case"2":loadControlNew("q","outDiv",KL,"S","kb_div");loadControlNew("q1","OutDiv_feed",KL,"M","");break;case"3":break;case"4":loadControlNew("cdq","outDiv",KL,"S");break;default:}}catch(A){return }}function menu(){if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){document.getElementById("HomePageLink").style.display="none"}else{document.getElementById("HomePageLink").style.display="block"}}function getCookie(A){try{if(document.cookie.length>0){c_start=document.cookie.indexOf(A+"=");if(c_start!=-1){c_start=c_start+A.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1){c_end=document.cookie.length}return unescape(document.cookie.substring(c_start,c_end))}}return""}catch(B){alert("ErrorCode 201 "+B.description)}}function cs(){try{var E=getCookie("WSC1");var C=E.split("&");for(var B=0;B<C.length;B++){var G=C[B].indexOf("=");if(G>0){var A=C[B].substring(0,G);var F=C[B].substring(G+1);csParm[A]=F}}}catch(D){alert("ErrorCode 202 "+D.description)}}function qs(){try{var E=window.location.search.substring(1);var C=E.split("&");for(var B=0;B<C.length;B++){var G=C[B].indexOf("=");if(G>0){var A=C[B].substring(0,G);var F=C[B].substring(G+1);qsParm[A]=F}}}catch(D){alert("ErrorCode 203 "+D.description)}}function initvar(){qs();cs();CP=CurrentPage();NORPP=NumberOfRecordsPerPage();KL=KeyboardLanguage();DWS=doWebSearch();DOINW=DoOpenInNewWindow();SS=SearchString();BROWSER=BrowserName();var A=document.getElementById("lid");var B=document.getElementById("num");if(A!=null){A.value=KL}if(B!=null){B.value=NORPP}if(qsParm.q!=null){if(trim(qsParm.q).length==0){window.location.href="/"}}}function setCookie(C,E,A,B,D){var F=new Date();F.setDate(F.getDate()+A);document.cookie=C+" =IL="+trim(E)+"&H="+B+"&IOL="+D+((A==null)?"":";expires="+F.toGMTString())}function checkCookie(H){var D=DSKH;var B=H;var A=NORPP;var F=DOINW;if(gpid()=="4"){var E=document.getElementById("ctl00_CPH_uxSelectLanguage");if(E!=null){B=E.options[E.selectedIndex].value;H=B}var G=document.getElementById("ctl00_CPH_uxResultsDDL");if(G!=null){A=G.options[G.selectedIndex].value}var C=document.getElementById("ctl00_CPH_uxOpenChk");if(C!=null){F=C.checked}}setCookie("WSC1",H,30,A,F);cs()}function SavePreferences(){if(csParm.IL.toUpperCase()=="EN"){window.location="default.htm?lid=EN"}else{window.location="default.aspx?lid="+csParm.IL}}function doWebSearch(){try{if(qsParm.w!=null){if(qsParm.w=="true"){return true}else{return false}}else{return true}}catch(A){alert("ErrorCode 216 "+A.description)}}function DoOpenInNewWindow(){try{if(csParm!=null){if(csParm.IOL!=null){if(csParm.IOL=="true"){return true}}return false}}catch(A){alert("ErrorCode 217 "+A.description)}}function CurrentPage(){var A=1;if(qsParm.cp==null){A=1}else{A=qsParm.cp}return A}function SearchString(){return window.location.search.substring(1)}function NumberOfRecordsPerPage(){try{var A=10;if(qsParm.num==null){if(csParm.H!=null&&csParm.H.length>0){A=csParm.H}}else{A=qsParm.num}return A}catch(B){alert("ErrorCode 219 "+B.description)}}function BrowserName(){if(navigator.appName=="Microsoft Internet Explorer"){return"IE"}else{return"Other"}}function KeyboardLanguage(){try{var B="HI";if(qsParm.lid==null){if(csParm.IL!=null){B=csParm.IL}else{B="HI"}}else{B=qsParm.lid}B=B.toUpperCase();return trim(B.toUpperCase())}catch(A){alert("ErrorCode 215 "+A.description)}}function hideDiv(){if(document.getElementById("lkndiv")!=null){document.getElementById("lkndiv").style.display="none"}}function gpn(A){var B;if(A==null){A="HI"}switch(A.toUpperCase()){case"EN":B="english";break;case"HI":B="hindi";break;case"MA":B="marathi";break;case"TM":B="tamil";break;case"TG":B="telugu";break;case"KN":B="kannada";break;case"PN":B="punjabi";break;case"BN":B="bengali";break;case"ML":B="malayalam";break;case"GU":B="gujarati";break;default:B="hindi"}return B}function getC(A){switch(A.toUpperCase()){case"EN":return 1;case"HI":return 2;case"TM":return 6;case"GU":return 7;case"PN":return 5;case"BN":return 8;case"KN":return 10;case"TG":return 9;case"MA":return 3;case"ML":return 4;default:return 1}}function GetClsC(A){switch(A.toUpperCase()){case"EN":return 1;case"HI":return 2;case"TM":return 3;case"GU":return 4;case"PN":return 5;case"BN":return 6;case"KN":return 7;case"TG":return 8;case"MA":return 9;case"ML":return 10;default:return 1}}function getProp(D,A,C){var B='<a href="javascript:newsh(\'kb_q\');" class="'+KL+'1" id="showKB" >'+D+'</a>&nbsp;&nbsp;<span class"english">|</span>&nbsp;&nbsp;<a href="javascript:newsh(\'tbl2B\')"id="sho" class="prop '+KL+'1">'+A+"</a>&nbsp;";if(KL.toUpperCase()=="HI"||KL.toUpperCase()=="GU"||KL.toUpperCase()=="TM"){B=B+'&nbsp;&nbsp;<span class"english">|</span>&nbsp;&nbsp;<a href="javascript:newsh(\'dict\');"  id="dictr"  style="font-size:12px;">'+C+"</a>"}document.getElementById("searchmain_c").innerHTML=B}function get3Div(D){var E="";var B="";var A="";var C="";C=document.getElementById("dvmsg").innerHTML;if(gpid()=="1"){E='<div id="tbl2B" style="display: none; top: 1px; position: relative; z-index: 10500;">';B='<div id="dict" style="display: none; z-index: 10180; padding: 2px; top: 1px;position: static; margin-left: 350px;background-color: #FFFFFF; height: 50px;width: 180px; border: 1px solid #E2E2E0;" align="right">'}if(gpid()=="2"){E='<div id="tbl2B" style="display: none; position: absolute; z-index: 10050;">';B='<div id="dict" style="display: none; z-index: 10180; position: absolute; background-color: #FFFFFF;border: 1px solid #E2E2E0; left: 525px; vertical-align: top;margin-top:3px;" align="right">'}var F=E+'<div id="tipcontent" style="float: left; margin-left: 4px;"><div id="hlptxt">'+C+'</div></div><div id="close2" onclick="newh(\'tbl2B\');" class="closeBtn2" style="margin-top: 5px;width: 12px; float: right; height: 10px;"></div></div>'+B+'<a href="javascript:void(0)" onclick="newh(\'dict\');"><div id="close3" onclick="newh(\'dict\');" class="closeBtn2" style="width: 10px;line-height:10px;"></div></a><table style="vertical-align:bottom;padding-top:2px;" ><tr><td valign="bootom"><div class="dictrow"><div class="dictinput"><input name="" type="text" class="inputdict" autocomplete="off" id="dictxt" onblur="dictLostfocus(\'dictxt\');" onfocus="dictGotfocus(\'dictxt\');" onkeypress="Findkey(\'dictxt\',event);" onkeydown="Findkey(\'dictxt\',event);"/></div><div class="dict_arrow" style="cursor:hand" onclick="on_click();return false;"></div></div> </td></tr><tr><td><div id="dict1" style="display:none;" ></div></td></tr></table></div>';document.getElementById("searchmain_d").innerHTML=F}function newsh(C){var B=document.getElementById("searchmain_d");var G=document.getElementById("tbl2B");var D=document.getElementById("dict");var A=document.getElementById("dictxt");var I=document.getElementById("dict1");var H=document.getElementById("apDiv4");var F=document.getElementById("hideFeed");var E=document.getElementById("sign");if(C=="kb_q"){if(gpid()=="1"){B.style.display="block"}else{B.style.display="none"}G.style.display="none";I.style.display="none";D.style.display="none";if(gpid()!="1"){objfeedback.wiocKeyboard.displayKeyboard(false)}}if(C=="tbl2B"){B.style.display="block";G.style.display="block";I.style.display="none";D.style.display="none";obj.wiocKeyboard.displayKeyboard(false);if(gpid()!="1"){objfeedback.wiocKeyboard.displayKeyboard(false)}}if(C=="dict"){D.style.display="block";A.value="Type Here";A.title="Type Here";I.style.display="none";G.style.display="none";B.style.display="block";A.style.color="Silver";if(gpid()!="1"){objfeedback.wiocKeyboard.displayKeyboard(false)}obj.wiocKeyboard.displayKeyboard(false)}if(H!=null){H.style.display="none";F.className="fdbbtnoff";F.title="feedback On";E.innerHTML="+";E.className="activePlus"}}function dictLostfocus(A){getData(A)}function dictGotfocus(A){clearData(A)}function clearData(A){var B=document.getElementById(A);if(B.value==B.title){B.value=""}B.style.color="black"}function getData(A){var B=document.getElementById(A);if(B.value==""){B.value=B.title;B.style.color="Silver"}}function newh(E){var A=document.getElementById("searchmain_d");var D=document.getElementById("tbl2B");var F=document.getElementById("dict");var B=document.getElementById("dictxt");var C=document.getElementById("dict1");if(E=="kb_q"){if(gpid()!="1"){A.style.display="none"}D.style.display="none";F.style.display="none";obj.wiocKeyboard.displayKeyboard(false)}if(E=="tbl2B"){if(gpid()!="1"){A.style.display="none"}D.style.display="none";F.style.display="none"}if(E=="dict"){C.style.display="none";F.style.display="none";B.value="";if(gpid()!="1"){A.style.display="none"}D.style.display="none"}}function showSubMenu(C){var D=document.getElementById("subMenu");var B=document.getElementById("more");var A=document.getElementById("righttop");if(C=="shMenu"){D.style.display="block";B.style.display="none";A.style.display="none"}if(C=="hdMenu"){D.style.display="none";B.style.display="block";A.style.display="block"}}function setBtn3(G){G.className=G.className=="fdbbtn"?"fdbbtnoff":"fdbbtn";G.title=G.title=="feedback Off"?"feedback On":"feedback Off";var D=document.getElementById("sign");var F=document.getElementById("hiddenSign");if(G.className=="fdbbtnoff"){document.getElementById("feedBackB").style.display="block";document.getElementById("apDiv4").style.display="none";document.getElementById("feedBackP").style.display="none";D.innerHTML="+";D.className="activePlus";objfeedback.wiocKeyboard.displayKeyboard(false)}else{D.innerHTML=F.value;D.className="activePlus";if(KL!="EN"){var E=GetOffsetVal("uxemail");var B=objfeedback.getTextAreaID().id;var C=document.getElementById(B).offsetHeight;var A=document.getElementById("uxemail").offsetHeight;E.x=(parseInt(E.x)+2)+"px";E.y=(parseInt(E.y+C+A+14))+"px";objfeedback.wiocKeyboard.setKeyboardPos(E.x,E.y);objfeedback.wiocKeyboard.displayKeyboard(true)}}}function showHideKB(B){var A=document.getElementById("wiocShkb");if(!objfeedback.wiocKeyboard.isKeyboardVisible()){objfeedback.wiocKeyboard.displayKeyboard(true);A.title="Hide Keyboard"}else{objfeedback.wiocKeyboard.displayKeyboard(false);A.title="Show Keyboard"}}function GetOffsetVal(D){var C=0,B=0;var A=document.getElementById(D);if(A.offsetParent){C=A.offsetLeft;B=A.offsetTop;while((A=A.offsetParent)){C+=A.offsetLeft;B+=A.offsetTop}}return{x:C,y:B}}function showfeedback(D){var B=document.getElementById("feedBackB");var A=document.getElementById("feedBackP");var E=document.getElementById("apDiv4");var C=document.getElementById("searchmain_d");if(D=="feedBackP"){B.style.display="none";A.style.display="block";E.style.display="block";if(KL!="EN"){obj.wiocKeyboard.displayKeyboard(false)}}else{E.style.display="none";A.style.display="none";B.style.display="block"}if(C!=null){C.style.display="none"}}function showfeedback2(E){var C=document.getElementById("feedBackB");var A=document.getElementById("feedBackP");var G=document.getElementById("apDiv4");var D=document.getElementById("searchmain_d");var B=document.getElementById("sign");var F=document.getElementById("hiddenSign");if(E=="feedBackP"){C.style.display="block";G.style.display="none";A.style.display="none";document.getElementById("hideFeed").className="fdbbtnoff";B.innerHTML="+";B.className="activePlus";if(KL!="EN"){objfeedback.wiocKeyboard.displayKeyboard(false)}document.getElementById("hideFeed").title=document.getElementById("hideFeed").title=="feedback Off"?"feedback On":"feedback Off"}else{G.style.display="none";A.style.display="none";C.style.display="none";B.innerHTML=F.value;B.className="activePlus";if(KL!="EN"){objfeedback.wiocKeyboard.displayKeyboard(true)}}if(D!=null){D.style.display="none"}}function Findkey(A,B){var C;if(BROWSER=="IE"){C=B.keyCode}else{C=B.which}if((C==13||C==40||C==38)){if(C==40){if(document.getElementById(index+"_"+A)!=null){document.getElementById(index+"_"+A).className="dict_link"}if(document.getElementById("0_"+A)!=null){document.getElementById("0_"+A).className="dict_link"}index=index+1;if(index>cnt){index=0;if(document.getElementById((cnt+"_"+A))!=null){document.getElementById((cnt+"_"+A)).className="dict_link"}}if(index>0){if(document.getElementById((index-1)+"_"+A)!=null){document.getElementById((index-1)+"_"+A).className="dict_link"}}if(document.getElementById(index+"_"+A)!=null){document.getElementById(index+"_"+A).className="dict_link_over"}if(navigator.appName=="Microsoft Internet Explorer"){B.returnValue=false}else{B.preventDefault();return false}return false}else{if(C==38){if(document.getElementById(index+"_"+A)!=null){document.getElementById(index+"_"+A).className="dict_link"}if(document.getElementById("0_"+A)!=null){document.getElementById("0_"+A).className="dict_link"}index=index-1;if(index<0){index=cnt;if(document.getElementById("0_"+A)!=null){document.getElementById("0_"+A).className="dict_link"}}if(index>=0&&index<cnt){if(document.getElementById((index+1)+"_"+A)!=null){document.getElementById((index+1)+"_"+A).className="dict_link"}}if(document.getElementById(index+"_"+A)!=null){document.getElementById(index+"_"+A).className="dict_link_over"}if(navigator.appName=="Microsoft Internet Explorer"){B.returnValue=false}else{B.preventDefault();return false}return false}else{if(C==13){setValue(A,B)}}}}}function getLang(A){switch(A.toUpperCase()){case"HI":return"hi-IN";case"TM":return"ta-IN";case"GU":return"gu-IN";case"PN":return"pa-IN";case"BN":return"x-bn-IN";case"KN":return"kn-IN";case"TG":return"te-IN";case"MA":return"mr-IN";case"ML":return"x-ml-IN";default:return"hi-IN"}}function on_click(){if(document.getElementById("dict1").style.display=="block"){document.getElementById("dict1").style.display="none"}if(document.getElementById("dictxt").value.length>0){index=0;cnt=1;ajaxObj=ajaxObject();var C="http://search.webdunia.com/Services/dictionary.asmx";var A=document.getElementById("dictxt").value;var B="<?xml version='1.0' encoding='utf-8'?>";B+="<soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'>";B+="<soap:Body><getDictMeaning xmlns='http://tempuri.org/'>";B+="<keyword>";B+=A;B+="</keyword>";B+="<lang>";B+=getLang(KL);B+="</lang>";B+="</getDictMeaning></soap:Body></soap:Envelope>";ajaxObj.onreadystatechange=state_Change;ajaxObj.open("POST",C,true);ajaxObj.setRequestHeader("Content-Type","text/xml");ajaxObj.setRequestHeader("SOAPAction","http://tempuri.org/getDictMeaning");ajaxObj.send(B)}}var ajaxObject=function(){try{return new XMLHttpRequest()}catch(A){}try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(A){}try{return new SOAPCall()}catch(A){}};function state_Change(){if(ajaxObj.readyState==4){var A="<table width='100%' border='0' cellpadding='3' cellspacing='0' class='HI1' style='padding-top: 2px;'>";if(ajaxObj.status==200){if(navigator.userAgent.indexOf("MSIE")>=0){var G=new ActiveXObject("Microsoft.XMLDOM");G.loadXML(ajaxObj.responseText);var B=G.selectSingleNode('//getDictMeaningResponse//Table[@diffgr:id="Table'+cnt+'"]');if(!B){B=G.selectSingleNode('//getDictMeaningResult//Table[@diffgr:id="Table'+cnt+'"]')}while(B!=null){A=A+"<tr><td><div id='"+index+"_dictxt'   class='dict_link'   onmouseover=\"suggestOver(this,'dictxt')\" onmouseout=\"suggestOut(this)\" onclick=\"setValue('dictxt',event)\" >"+B.lastChild.text+"</div></td></tr>";cnt=cnt+1;index=index+1;if(cnt==6){break}B=G.selectSingleNode('//getDictMeaningResponse//Table[@diffgr:id="Table'+cnt+'"]')}}else{if(navigator.userAgent.indexOf("Gecko")>=0){var F=0;var H=new DOMParser().parseFromString(ajaxObj.responseText,"text/xml");var E=H.getElementsByTagName("Table");for(index=0;index<E.length;index++){F++;var D=E[index].getElementsByTagName("keywords");A=A+"<tr ><td><div id='"+index+"_dictxt' class='dict_link' onmouseover=\"suggestOver(this,'dictxt')\" onmouseout=\"suggestOut(this)\" onclick=\"setValue('dictxt',event)\" >"+D[0].firstChild.nodeValue+"</div></td></tr>";if(F==6){break}}}}index=index-1;cnt=index;var C=document.getElementById("dict1");C.style.display="block";if(index>=0){C.innerHTML=A+"</table>";C.focus();document.getElementById("dictxt").focus()}else{C.innerHTML=A+"<tr><td>Sorry! No meaning found</td></tr></table>"}}else{C.style.display="block";C.innerHTML=A+"<tr><td>Sorry! No meaning found</td></tr></table>"}}}function setValue(A,B){if(document.getElementById("dict1").style.display=="block"){for(index=0;index<=cnt;index++){if(document.getElementById(index+"_"+A)!=null){if(document.getElementById(index+"_"+A).className=="dict_link_over"){document.getElementById(obj.getTextAreaID().id).value=trim(document.getElementById(index+"_"+A).innerHTML);document.getElementById(index+"_"+A).className="dict_link";document.getElementById(obj.getTextAreaID().id).setAttribute("autocomplete","off");setTimeout("document.getElementById(obj.getTextAreaID().id).select();document.getElementById(obj.getTextAreaID().id).focus()",0);index=0;if(BROWSER=="IE"){B.returnValue=false;return false}else{B.preventDefault();return false}}}}}on_click();if(BROWSER=="IE"){B.returnValue=false;return false}else{B.preventDefault();return false}}function suggestOver(B,C){var A=cnt;if(A>0&&B.id.charAt(0)!="0"){document.getElementById("0_"+C).className="dict_link"}B.className="dict_link_over"}function suggestOut(A){A.className="dict_link"}function sugLoad(){if(KL.toUpperCase()=="EN"){return false}if(CP>1){return false}var A;var C;A=GetXmlHttpObject();var E=document.getElementById(obj.getTextAreaID().id).value;var D=KL;var B=1;if(BROWSER!="IE"){try{netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead")}catch(F){}}if(!window.XMLHttpRequest){window.XMLHttpRequest=function(){try{return new ActiveXObject("MSXML2.XMLHTTP.3.0")}catch(G){}}}if(A==null){alert("Browser does not support HTTP Request");return }A.onreadystatechange=function(){if(A.readyState==4){var I=A.responseText.indexOf("<a");var H=A.responseText.indexOf("</a>");var J=A.responseText.substring(I,(H+4));var G=A.responseText.substring((H-2),(H-1));if(trim(G)!=">"&&trim(G)!='"'&&trim(G)!=""){document.getElementById("dumTR").style.display="block";var K=document.getElementById("ctl00_CPH_hdnDUM").value;document.getElementById("dumTR").innerHTML="<span class='dumH'>"+K+"&nbsp;</span><span style='vertical-align:top;' class='lang'>"+J+"</span>"}else{document.getElementById("dumTR").style.display="none"}}};C="callServices.aspx?data="+encodeURIComponent(E)+"&lid="+encodeURIComponent(D)+"&num="+encodeURIComponent(B);try{A.open("GET",C,true)}catch(F){alert("Exception : "+F.message)}A.setRequestHeader("Content-Type","application/x-www-form-urlencoded");A.send();return true}function GetXmlHttpObject(){var A=null;if(window.XMLHttpRequest){A=new XMLHttpRequest();if(A.overrideMimeType){A.overrideMimeType("text/html")}}else{if(window.ActiveXObject){try{A=new ActiveXObject("Msxml2.XMLHTTP")}catch(B){try{A=new ActiveXObject("Microsoft.XMLHTTP")}catch(B){A=false}}}}return A}function lpg(C,K,J,H,B,E,I){K=parseInt(K);J=parseInt(J);var D=document.getElementById(C);var A=1;var G=1;if(K==null){K=1}var F=4;if(J>1){if(J<=F){A=1;G=J}else{A=(((K-1)/F)*F)+1;if(A+F>J){A=J-F+1}G=A+F-1}if(A>1){D.appendChild(GetLink(E,K-1,false,H,I))}for(;A<=G;A++){D.appendChild(GetLink(A,A,K==A,H,I))}if(A<=J){D.appendChild(GetLink(B,parseInt(K)+1,false,H,I))}}}function GetLink(F,C,E,G,B){if(E==null){E=false}var A=document.createElement("li");var D=document.createElement("a");if(!E){D.setAttribute("href","javascript:sfp("+C+",'"+G+"','"+B+"')")}else{D.style.fontWeight="bold";D.className="currentpage"}D.innerHTML=F;A.appendChild(D);return A}function sfp(A,D,B){D=D.replace("web:","");var C=document.getElementById("qOld").value;document.getElementById("cp").value=A;CP=A;if(D.length>0){window.location="/search.aspx?q="+replaceAll(escape(C),"+")+"&num="+NORPP+"&w="+DWS+"&lid="+KL+"&dom=web:"+D+"&cp="+A+"&st="+B}else{window.location="/search.aspx?q="+replaceAll(escape(C),"+")+"&num="+NORPP+"&w="+DWS+"&lid="+KL+"&cp="+A+"&st="+B}}function replaceAll(D,E){var A=D;var C=0;for(var B=0;B<D.length;B++){C=A.indexOf(E);A=A.replace(E,"%2b")}return A}function testKeyCode(B){var A;if(window.event){A=window.event.keyCode}else{if(B){A=B.which}}var B=B||window.event;if(A==18&&B.altKey){document.getElementById(obj.getTextAreaID().id).focus()}}function UrlAjaxFn(C,F,E){F=F.substring(0,100);var A;var B;A=GetXmlHttpObject();if(BROWSER!="IE"){try{netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead")}catch(G){}}if(!window.XMLHttpRequest){window.XMLHttpRequest=function(){try{return new ActiveXObject("MSXML2.XMLHTTP.3.0")}catch(H){}}}if(A==null){alert("Browser does not support HTTP Request");return }A.onreadystatechange=function(){if(A.readyState==4){}};B="/ShowLink.aspx";try{A.open("POST",B,true)}catch(G){alert("Exception : "+G.message)}A.setRequestHeader("Content-Type","application/x-www-form-urlencoded");C=C.replace("#","");var D="u="+encodeURIComponent(C)+"&q="+encodeURIComponent(F)+"&lid="+encodeURIComponent(E);A.send(D);return true}function down(){document.getElementById("downloadToolbar").style.display="none"}function toggleAdvanceProperties(A){if(document.getElementById(A).style.display=="none"){document.getElementById(A).style.display="block"}else{document.getElementById(A).style.display="none"}};