var ctrltxt="";var isJSLoaded=false;var usrAgt=navigator.userAgent.toLowerCase();function wdNewsControl(){this.lid="HI";this.host="http://std.webdunia.com";this.SCdivId="";this.ActionForm="";this.isOpenInNewWindow="target='_self'";this.loadForm=loadForm;this.loadControl=loadControl;this.loadJS=loadJS;this.wiocID="";this.outerDivID="";this.innerDivID="";this.wobj=null}function loadForm(J,K,H,G,L){this.lid=J;this.outerDivID=K;this.wiocID=K+"_wiocq";this.innerDivID=K+"_wiocdiv";var C="searchfrom_"+K;if(G!=null){if(G==true){this.isOpenInNewWindow="target='_blank'"}else{this.isOpenInNewWindow=""}}var E="";if(H!=null&&H.length>0){E=H}this.ActionForm=L;var A;try{A=document.getElementById(K);if(A==null){return }var D="<style type='text/css'>.TextAreaWiocEN {overflow:hidden; FONT-FAMILY: Arial,Helvetica,sans-serif; FONT-SIZE: 12px; border-top: 1px solid #EAEAEA; border-right: 1px solid #EAEAEA; border-left: 1px solid #EAEAEA; border-bottom: 1px solid #EAEAEA; color: #333333; SCROLLBAR-FACE-COLOR: #ffffff; SCROLLBAR-HIGHLIGHT-COLOR: #e5e9ed; SCROLLBAR-SHADOW-COLOR: #e5e9ed; SCROLLBAR-3DLIGHT-COLOR: #e5e9ed; SCROLLBAR-ARROW-COLOR: #c3c5c7; SCROLLBAR-TRACK-COLOR: #e5e9ed; SCROLLBAR-DARKSHADOW-COLOR: #e5e9ed; }; #searchmain_b{vertical-align:top;}#searchmain_b{vertical-align:top;}.wd-icon{background-image:url(http://std.webdunia.com/nsc/1.1/optimized_image.gif); background-position:-62px -60px;background-repeat:no-repeat;width:23px;height:31px;}.src-icon {background-image:url(http://std.webdunia.com/nsc/1.1/optimized_image.gif); background-position:-108px -60px;background-repeat:no-repeat;width:36px;height:31px;cursor:pointer;}.textfieldOuter {height: 31px;background-image:url(http://std.webdunia.com/nsc/1.1/optimized_image.gif); background-repeat: repeat-x;background-position: -1px -160px;}.searchmain_a{vertical-align:bottom;text-align:left; margin-bottom:-4px;height:25px;}#searchmain_c{vertical-align:top;text-align:right;padding-right:8px; height:22px;}#searchmain_d{vertical-align:top;text-align:left;}.newtableft{background-image: url(http://std.webdunia.com/nsc/1.1/optimized_image.gif);background-repeat:no-repeat;background-position:-16px -104px;height:24px;width: 14px;}.newtabcenter{background-image: url(http://std.webdunia.com/nsc/1.1/optimized_image.gif);background-repeat:repeat-x;background-position:5px -238px;height:24px;padding-top:0px; vertical-align:middle;text-align:left;font-weight:bold;color:#000000;text-decoration:none;font-size:12px;text-align:center;}.newtabright{background-image: url(http://std.webdunia.com/nsc/1.1/optimized_image.gif);background-repeat:no-repeat;background-position:-54px -104px;height:24px;width: 10px;}a.normal:link{ color:#0000ff;text-decoration:none;font-size:12px;}a.normal:visited{color:#0000ff;font-size:12px;text-decoration:none;}a.normal:hover{color:#0000ff;font-size:12px;text-decoration:none;}a.normal:active{color:#0000ff;font-size:12px;text-decoration:none;}.english{font-family:Verdana, Arial, Helvetica, sans-serif; font-size:9px;}</style>";var I="<input id='lid' type='hidden' name='lid' value='"+this.lid+"' /><input id='num' type='hidden' name='num' value='10' /><input id='cp' type='hidden' name='cp' /><input type='hidden' name='w' id='w_"+K+"' value='true'/><input type='hidden' name='o' id='o' value='1'/>";var B="<form id='"+C+"' name='"+C+"' style='margin: 0px;' action='"+this.ActionForm+"' "+this.isOpenInNewWindow+" defaultbutton ='sb' >"+D+"<div id='sa_"+K+"' class='english searchmain_a'></div><div id='searchmain_b'><table border='0' cellspacing='0' cellpadding='0' id='nsctbl' style='width:100%'><tr><td align='left' valign='middle'><div class='wd-icon'></div></td><td align='center' valign='middle' title='webdunia search' style='width:100%;'><div class='textfieldOuter'><div style='padding-top: 7px;'></div>";if(this.lid.toUpperCase()=="EN"){A.innerHTML=B+"<textarea name='q' id='"+this.wiocID+"' class='TextAreaWiocEN' rows='1' title='Search' style='height:16px;width:375px;border:0px solid #DBE2E5;' maxlength='200' onkeypress='checkEnterkey(event,\""+C+"\");'></textarea></div></td><td align='right' valign='middle'><a href='javascript:sf(\""+C+"\");' onclick=\"objStat.logActivity('Search:click','')\" id='sb' title='search'><div class='src-icon'></div></a></td></tr></table></div>"+I;document.getElementById(this.wiocID).innerHTML=E;setTabEn("n",C,"sa_"+K,"w_"+K,this.lid,this.ActionForm)}else{A.innerHTML=B+"<div id='"+this.innerDivID+"' title='"+E+"'></div></div></td><td align='right' valign='middle'><a href='javascript:sf(\""+C+"\");' onclick=\"objStat.logActivity('Search:click','')\" id='sb' title='search'><div class='src-icon'></div></a></td></tr></table></div>"+I;document.getElementById(this.innerDivID).title=E;setTab("n",C,"sa_"+K,"w_"+K,this.lid,this.ActionForm)}return true}catch(F){alert("errorcode:nsc1"+F.message)}}function checkEnterkey(C,B,A){if(navigator.appName=="Microsoft Internet Explorer"){if(window.event.keyCode=="13"){event.returnValue=false;sf(B)}}else{if(C.which==13){C.preventDefault();sf(B)}}}function sf(A){document.forms[A].submit()}function _wiocliteEnterKeyEvent(B){var A=B.replace("_wiocq","");var C="searchfrom_"+A;this.sf(C)}function _wiocliteControlSetProperties(A){A.setDictOn(true);A.setMaxLen("200");var C=A.getCtrlId().replace("_wiocq","");if(typeof (SetWIOCProperties)=="function"){try{var B=SetWIOCProperties(A,C);B=null}catch(D){}}}function loadJS(){if(isJSLoaded==true){return }if(this.lid.toUpperCase()=="EN"){return }try{loadWiocJS(this.host+"/wioc/wiocV3.0.0.11/scripts/wiocmain.js");loadWiocJS(this.host+"/wioc/wiocV3.0.0.11/scripts/resource_"+this.lid+".js");if(usrAgt.indexOf("gecko")==-1){loadCSS(this.host+"/wioc/wiocV3.0.0.11/wiocmain_ie.css")}else{loadCSS(this.host+"/wioc/wiocV3.0.0.11/wiocmain_gecko.css")}}catch(A){alert("Error loadJS:"+A.message)}isJSLoaded=true}function loadCSS(B){var C=document.getElementsByTagName("head")[0];var A=document.createElement("link");A.setAttribute("type","text/css");A.setAttribute("rel","stylesheet");A.setAttribute("href",B);C.appendChild(A)}function loadWiocJS(A){document.write("<script type='text/javascript' src='"+A+"'><\/script>")}function loadControl(C){if(C!=null){this.wiocID=C+"_wiocq";this.innerDivID=C+"_wiocdiv"}var A=document.getElementById(this.wiocID);if(this.lid.toUpperCase()=="EN"){A.style.height="17px";A.style.overflow="hidden";A.style.width="375px";A.setAttribute("wrap","off");return }try{while(!ControlCreated){try{if(!ControlCreated){loadJS();CreateControl(this,"375px","1",this.innerDivID,this.wiocID,this.lid,"S")}if(ControlCreated){break}}catch(B){}}}catch(B){alert("Error LoadControl: "+B.message)}}var ControlCreated=false;function CreateControl(F,A,E,D,B,G,C){F.wobj=new WIOCLITE(A,E,D,B,G,C,"5",1);ControlCreated=true}function _wiocliteControlLoaded(D){var A=document.getElementById(D);var B=D.replace("_wiocq","_wiocdiv");A.style.border="0px solid #DBE2E5";A.style.width="375px";A.style.height="17px";var C=document.getElementById(B).title;if(C.length>0&&C!=null){A.innerHTML=C}A.name="q"}function setTab(I,D,H,F,B,G){if(I==""){I="n"}var E='<table border="0" cellpadding="0" cellspacing="0" style="position: relative;z-index: 9990;margin-top:0px;"><tr>';var A="</tr></table>";var C="";if(I=="w"){C='<td >&nbsp;<a href="javascript:void(0)" class="normal" onclick="setTab(\'n\',\''+D+"','"+H+"','"+F+"','"+B+"','"+G+'\');return false;" id = "nt1" title="search in 24dunia">24dunia</a></td><td class="newtableft normal"></td><td class="newtabcenter">Web</td><td class="newtabright"></td><td class="normal"><a href="javascript:void(0)" onclick="setTab(\'wd\',\''+D+"','"+H+"','"+F+"','"+B+"','"+G+'\')" class="normal" title="search in webdunia">Webdunia.com</a></td>';document.getElementById(F).value=true;document.forms[D].action="http://search.webdunia.com/search.aspx"}if(I=="wd"){C="<td >&nbsp;<a href=\"javascript:void(0)\" onclick=\"setTab('n','"+D+"','"+H+"','"+F+"','"+B+"','"+G+'\');return false;" class="normal" id = "nt1" title="search in 24dunia">24dunia</a>&nbsp;&nbsp;|&nbsp;&nbsp;</td><td style="text-align:right" class="normal"><a href="javascript:void(0)" onclick="setTab(\'w\',\''+D+"','"+H+"','"+F+"','"+B+"','"+G+'\')" class="normal" title="search in web">Web</a></td><td class="newtableft EN1"></td><td class="newtabcenter">Webdunia.com</td><td class="newtabright"></td>';document.getElementById(F).value=false;document.forms[D].action="http://search.webdunia.com/search.aspx"}if(I=="n"){C='<td class="newtableft normal"></td><td class="newtabcenter" id="nt1">24dunia</td><td class="newtabright"></td><td style="text-align:right">&nbsp;<a href="javascript:void(0)" onclick="javascript:setTab(\'w\',\''+D+"','"+H+"','"+F+"','"+B+"','"+G+'\')" title="search in web" class="normal">Web</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a class="normal" href="javascript:void(0)" onclick="setTab(\'wd\',\''+D+"','"+H+"','"+F+"','"+B+'\')" title="search in webdunia">Webdunia.com</a></td>';document.forms[D].action=G}document.getElementById(H).innerHTML=E+C+A;return true}function setTabEn(I,D,H,F,B,G){if(I==""){I="n"}var E='<table border="0" cellpadding="0" cellspacing="0" style="position: relative;z-index: 9990;margin-top:0px;"><tr>';var A="</tr></table>";var C="";if(I=="n"){C='<td class="newtableft normal"></td><td class="newtabcenter" id="nt1">24dunia</td><td class="newtabright"></td>';document.forms[D].action=G}document.getElementById(H).innerHTML=E+C+A;return true};