﻿function ClearText(){var txtSearch=document.getElementById("txtSearch");if(txtSearch.value=="Enter Company Name"){txtSearch.value="";}}function SetText(){var txtSearch=document.getElementById("txtSearch");if(txtSearch.value==""){txtSearch.value="Enter Company Name";}}function Search(){var txtSearch=document.getElementById("txtSearch");if(txtSearch.value==""||txtSearch.value=="Enter Company Name"){alert("Enter Company Name");}else{document.location="CompanyProfile/CompanyProfile.aspx?Url=companyprofile1/CompanyList.aspx?SrchQuote="+txtSearch.value+"|id=1";}}function RealestateForm(){window.open('Help_desk/RealEstate.aspx','Unicon','width=500, height=470,toolbar=no,location=no,menubar=no,left = 200, top = 100');}function ECN(){window.open('ECN.aspx','Unicon','width=500, height=470,toolbar=no,location=no,menubar=no,left=200,top=100,scrollbars=yes');}function TextName_OnKeyDown(e){var keynum
if(window.event){keynum=e.keyCode;}else if(e.which){keynum=e.which;}if(keynum==13){Search();return false;}}function swapImage(FlashNo){if(FlashNo==1){ShowFlash('Flash/newadv',2,52000);}else{ShowFlash('Flash/adv',1,53000);}}function ShowFlash(filename,No,TimeOut){var b='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="250" height="230" align="middle"><param name="quality" value="high" /><param name="wmode" value="transparent" /> <param name="movie" value="'+filename+'.swf" /><embed src="'+filename+'.swf" quality="high" wmode="transparent" bgcolor="#ffffff"  width="235" height="167" align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';document.getElementById('imageDIV').innerHTML=b;setTimeout('ChangeFlash('+No+')',TimeOut)}function ChangeFlash(FlashNo){swapImage(FlashNo);}function Disclamer(){window.open("commoncontrols/Disclaimer.aspx",'Unicon','x=0,y=0,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,copyhistory=no,width=580,height=500,screenX=0,screenY=0,left=210,top=200');}function PrivacyPolicy(){window.open("commoncontrols/PrivacyPolicy.aspx",'Unicon','x=0,y=0,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,copyhistory=no,width=580,height=500,screenX=0,screenY=0,left=210,top=200');}function TermofUse(){window.open("commoncontrols/TermOfUse.aspx",'Unicon','x=0,y=0,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,copyhistory=no,width=580,height=500,screenX=0,screenY=0,left=210,top=200');}function showImagepopup(){var width="<%=Width_Home_1%>";var height="<%=Height_Home_1%>";var left="<%=Left_Home_1%>";var top="<%=Top_Home_1%>";var POPUP="<%=ShowPOPUP_1%>";if(POPUP=="yes"){window.open('AddPopUp.aspx','Accord','height=<%=Height_Home_1%>,width=<%=Width_Home_1%>,scrollbars=no,location=no,left=500,top=437');}}function ShowHomePop(){var win1=window.open('Unicon_Wealth_Countdown_to_Budget.pdf','Accor11d','height=800,width=700,resizable=yes,scrollbars=yes,location=no,left=0,top=0');}function ShowHomePop1(){var win1=window.open('Railway_Budget_10-11_Analysis.pdf','Accor12d','height=800,width=700,resizable=yes,scrollbars=yes,location=no,left=300,top=0');}function PopUp(){window.open("popups/TataAig.html",'Unicon','x=0,y=0,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,copyhistory=no,width=1030,height=800,screenX=0,screenY=0,left=210,top=200');return false;}function Budget(){window.open("popups/Budget.htm",'Unicon','x=0,y=0,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no,width=303,height=215,screenX=0,screenY=0,left=100,top=437');return false;}
