var isRated=0;function getFctrl(E,D,C){var A="";var B="";KL=C;if(KL.toUpperCase()=="EN"){A='<div align="left" id="OutDiv_feed"><textarea name="q1" rows="4" id="OutDiv_feed_wiocq1" style="width:420px;" maxlength="1000"></textarea></div>';B=""}else{A='<div align="left" id="OutDiv_feed" style="height:180px;" name="q1"></div>';B='<a href="javascript:void(0);" onclick="showHideKB(this);"><div id="wiocShkb" class="wds_keyboard" title="Hide Keyboard"></div></a>'}document.getElementById("apDiv4").innerHTML='<div id="feedBackB" style=""></div><div id="feedBackP" style="height:auto;"><table border="0" cellspacing="2" cellpadding="0" style="vertical-align:middle;width:100%"><tr><td colspan="2"><div id="closeBtn" onclick="showfeedback2(\'feedBackP\'); return false;" class="closeBtn2" style="width: 9px;height: 10px;margin:4px;float:right;"></div></td></tr><tr><td align="right" style="width:30%;" >'+E+'&nbsp;</td><td id="fdright" ><input name="input" id="uxemail" type="text" style="width: 420px;" maxlength="100"/></td></tr><tr><td align="right" valign="top" style="width:30%;">'+D+"&nbsp;</td><td>"+A+'</td></tr><tr><td>&nbsp;</td><td align="right"><table border="0" cellspacing="0" cellpadding="0" width="30%"><tr><td>'+B+'</td><td>&nbsp;<div style="margin-left:10px;margin-right:2px;"><input name="button" type="button" class="SearchButton" id="cmdSubmit" onclick="javascript:CheckValueNew(1);" value="Submit"  style="margin-top:20px;" align="right" runat="server" text="Submit" /></div></td></tr></table></td></tr></table><input type="hidden" name="txtFeedback" id="txtFeedback"/></div>'}function getRctrl(D,B,C){var A="";KL=C;if(KL.toUpperCase()=="EN"){A="style='height:192px;margin:-195px 0px 0px 0px;vertical-align:bottom;position:relative;float:right;'"}else{A="style='height: 305px;margin:-307px 0px 0px 0px;vertical-align:bottom;position:relative;float:right;z-index:10000'"}document.getElementById("fd").innerHTML='<div id="apDiv4"'+A+'></div><div id="fdtext" style="width: auto;padding-left:5px; padding-top:5px; padding-right:10px; text-align:left;" >'+D+'</div><div id="fdstar" style="width: 105px; padding-top:2px; text-align:left;"><div id="star1" class="star" title="very poor" style="float: left;cursor: pointer"  onmouseover="MouseClickNew(1,1,0)" onmouseout="setclsStar()" onclick="javascript:MouseClickNew(1,1,1)" ></div><div id="star2" class="star" title="poor" style="float: left;cursor: pointer" onmouseover="MouseClickNew(2,1,0)" onmouseout="setclsStar()" onclick="javascript:MouseClickNew(2,1,1)"></div><div id="star3" class="star" title="good" style="float: left;cursor: pointer" onmouseover="MouseClickNew(3,1,0)" onmouseout="setclsStar()" onclick="javascript:MouseClickNew(3,1,1)"></div><div id="star4" class="star" title="very good" style="float: left;cursor: pointer" onmouseover="MouseClickNew(4,1,0)" onmouseout="setclsStar()" onclick="javascript:MouseClickNew(4,1,1)" ></div><div id="star5" class="star" title="excellent" style="float: left;cursor: pointer" onmouseover="MouseClickNew(5,1,0)" onmouseout="setclsStar()" onclick="javascript:MouseClickNew(5,1,1)"></div><input type="hidden" id="txtUserRating" name="txtUserRating" value="0" /><input type="hidden" id="txtSearchResult" name="txtSearchResult" /></div><div style="float:right; padding-right:2px;margin:0px 0px 0px 210px;"><a href = "javascript:void(0); " style="text-align:right;" title="feedback On" onclick="javascript:showfeedback(\'feedBackP\');setBtn3(this);return false;" class="fdbbtnoff" id="hideFeed" style="padding-top:2px;outline:none;"><span>'+B+'</span>&nbsp;<span id="sign" class="activePlus" >+</span></a></div>'}function CheckValueNew(B){if(B==1){var A=(document.getElementById("uxemail")==null)?"":document.getElementById("uxemail").value;var C=A.length;var D=/^[^\s()<>@,;:\/]+@[\w\.-]+\.[a-z]{2,}$/i;if(C>0){if(!D.test(A)){alert("Please Enter Valid Email ID.");return false}}else{if(C==0){alert("Please Enter Email ID.");return false}}if(document.getElementById("ctl00_CPH_resPanel")!=null){document.getElementById("txtSearchResult").setAttribute("value",document.getElementById("ctl00_CPH_resPanel").innerHTML)}if(KL=="EN"){if(document.getElementById("OutDiv_feed_wiocq1").value.length==0){alert("Please Enter Your Feedback.");return false}document.getElementById("txtFeedback").value=document.getElementById("OutDiv_feed_wiocq1").value}else{if(document.getElementById(objfeedback.getTextAreaID().id).value.length==0){alert("Please Enter Your Feedback.");return false}document.getElementById("txtFeedback").value=document.getElementById(objfeedback.getTextAreaID().id).value}buildURL("F")}else{buildURL("F")}}function MouseClickNew(A,B,D){var C;if(isRated==1){return }if(B==1){document.getElementById("txtUserRating").setAttribute("value",A);if(document.getElementById("ctl00_CPH_resPanel")!=null){document.getElementById("txtSearchResult").setAttribute("value",document.getElementById("ctl00_CPH_resPanel").innerHTML)}for(C=1;C<=A;C++){document.getElementById("star"+C).className="activestar"}for(C=A+1;C<=5;C++){document.getElementById("star"+C).className="star"}if(D==1){buildURL("R");isRated=1}}else{for(C=1;C<=A;C++){document.getElementById("star"+C).className="activestar"}for(C=A+1;C<=5;C++){document.getElementById("star"+C).className="star"}}}function setclsStar(){if(isRated==1){return }for(i=1;i<=5;i++){document.getElementById("star"+i).className="star"}}function buildURL(A){if(A=="F"){email=document.getElementById("uxemail").value;if(KL=="EN"){txt=document.getElementById("OutDiv_feed_wiocq1").value}else{txt=document.getElementById(objfeedback.getTextAreaID().id).value}}else{rate=document.getElementById("txtUserRating").value}res=document.getElementById("txtSearchResult").value;q=document.getElementById(obj.getTextAreaID().id).value;ajaxFunction(A)}function ajaxFunction(E){var A;var B;A=GetXmlHttpObject();if(BROWSER!="IE"){try{netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead")}catch(D){}}if(!window.XMLHttpRequest){window.XMLHttpRequest=function(){try{return new ActiveXObject("MSXML2.XMLHTTP.3.0")}catch(F){}}}if(A==null){alert("Browser does not support HTTP Request.");return }A.onreadystatechange=function(){if(A.readyState==4){document.getElementById("txtSearchResult").value=A.responseText}};B="/search.aspx";try{A.open("POST",B,true)}catch(D){alert("Exception : "+D.description)}A.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var C="";if(E=="R"){C="rs="+encodeURIComponent(res)+"&rt="+encodeURIComponent(rate)+"&q="+q+"&lid="+KL}else{C="rs="+encodeURIComponent(res)+"&e="+encodeURIComponent(email)+"&txt="+encodeURIComponent(txt)+"&q="+q+"&lid="+KL}A.send(C);if(E=="F"){document.getElementById("uxemail").value="";if(KL=="EN"){document.getElementById("OutDiv_feed_wiocq1").value=""}else{document.getElementById(objfeedback.getTextAreaID().id).value=""}alert("Thanks for your Feedback!")}else{alert("Thanks for Rating!");MouseClickNew(rate,0,0);document.getElementById("txtUserRating").value="0"}showfeedback2("feedBackP");return true};