function Popup(){

myleft=(screen.width)?(screen.width-760)/2:100;mytop=(screen.height)?(screen.height-550)/2:100;

settings='top=' + mytop + ',left=' + myleft + ',width=760,height=450,location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=no,resizable=yes,fullscreen=no'

PopupWin=window.open('https://kstrade.kotaksecurities.com/itrade/user/macct.exe?action=acct_act','PopupWin', settings);

PopupWin.focus();}

function select(){

myleft=(screen.width)?(screen.width-600)/2:100;mytop=(screen.height)?(screen.height-300)/2:100;

settings='top=' + mytop + ',left=' + myleft + ',width=400,height=350,location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=no,resizable=yes,fullscreen=no'

PopupWin1=window.open('../forms/selectform.html','PopupWin1', settings);

PopupWin1.focus();}

function assist(){

myleft=(screen.width)?(screen.width-600)/2:100;mytop=(screen.height)?(screen.height-300)/2:100;

settings='top=' + mytop + ',left=' + myleft + ',width=400,height=350,location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=no,resizable=yes,fullscreen=no'

PopupWin1=window.open('../forms/assistform.html','PopupWin1', settings);

PopupWin1.focus();}

function klifestyle(){

myleft=(screen.width)?(screen.width-600)/2:100;mytop=(screen.height)?(screen.height-300)/2:100;

settings='top=' + mytop + ',left=' + myleft + ',width=400,height=350,location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=no,resizable=yes,fullscreen=no'

PopupWin1=window.open('../forms/klifestyleform.html','PopupWin1', settings);

PopupWin1.focus();}

function FAQ(){

myleft=(screen.width)?(screen.width-760)/2:100;mytop=(screen.height)?(screen.height-550)/2:100;

settings='top=' + mytop + ',left=' + myleft + ',width=760,height=450,location=no,directories=no,menubar=no,toolbar=yes,status=no,scrollbars=no,resizable=yes,fullscreen=no'

Popup =window.open('../faqs/faq.html','Popup', settings);

Popup.focus();}

function PopupMe1(){

myleft=(screen.width)?(screen.width-600)/2:100;mytop=(screen.height)?(screen.height-300)/2:100;

settings='top=' + mytop + ',left=' + myleft + ',width=350,height=250,location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=no,resizable=yes,fullscreen=no'

PopupWin1=window.open('../callandtrade/callandtrade.html','PopupWin1', settings);

PopupWin1.focus();}

function submit_search()

{
document.search.submit();document.customsearch.submit();alert(document.search.qt.value);

}

function s_show(){

	return false}

function s_hide(){return false}

if(window.event+''=='undefined')event=0

function Submit_email()

{

 	 if (document.email1.email.value == "")

      {

        alert("Email cannot be blank");

       document.email1.email.focus();

       return (false);

     }



    if (document.email1.email.value.length < 1)

     {

      alert("Please enter at least 1 characters in the \"email\" field.");

      document.email1.email.focus();

      return (false);

     }



	 var iChars = document.email1.email.value;

     if ((iChars.indexOf('@')== -1) || (iChars.indexOf('.')== -1))

	 {

		 alert("email is not valid");

         return (false);

	 }



     if (document.email1.email.value.length > 45)

      {

      alert("Email ID cannot contain more than 45 characters");

      document.email1.email.focus();

      return (false);

      }



     if ( document.email1.email.value.indexOf(" ") >= 0)

     {

        alert("Email ID cannot contain spaces");

        document.email1.email.focus();

        return (false);

     }



      var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz????????ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþ0123456789-@,_";

     var checkStr =  document.email1.email.value;

     var allValid = true;

     for (i = 0;  i < checkStr.length;  i++)

       {

        ch = checkStr.charAt(i);

        for (j = 0;  j < checkOK.length;  j++)

          if (ch == checkOK.charAt(j))

          break;

              if (j == checkOK.length)

                {

                  allValid = false;

                   break;

                 }

          }

        document.email1.submit();

	    window.open("/jsp/newsletter.jsp?email="+document.email1.email.value,"submit","width=300 height=200");

}

function winopen(aURL,id,w,h){

var strURL,strWinName,winWidth,winHeight;

				var winTop,winLeft;

				strWinName = "Results";

				winWidth =	w;

				winHeight = h;

				winTop=20;

				winLeft=0;

				winLeft=Math.floor((Math.abs(screen.availWidth-winWidth))/2);

				winTop=Math.floor((Math.abs(screen.availHeight-winHeight))/2);

				strWin=window.open(aURL,id,'top='+ winTop + ',left=' + winLeft + ',width=' + winWidth + ',height=' + winHeight + ',toolbar=no menubar=no,location=no,directories=no,status=no,resizable=no,scrollbars=no');

				return strWin;

}function header(){document.write("<table border='0' cellpadding='0' cellspacing='0' width='100%'>")document.write("<tr>")document.write("<td align='left' valign='top'><a href='../home/index.html'><img src='/images/investor/logo_red_bg.gif' height='56' width='176' border='0'></a></td>")document.write("<td align='right' valign='top'><table border='0' cellpadding='0' cellspacing='0' >")document.write("<tr>")document.write("<td align='right' height='28' valign='top'><map name='FPMap0'><area href='javascript:mainTracker._link("../business_associates/accountsection/index.html")' target='_blank'  shape='rect' coords='10, 1, 123, 18' alt=''>			<area href='https://kstrade.kotaksecurities.com/openindex.html' target='_blank'  shape='rect' coords='130, 0, 226, 17' alt=''>			<area href='../jsp/account/openaccount.jsp' shape='rect' coords='236, 0, 345, 18' alt=''>			<area href='javascript:Popup();' shape='rect' coords='351, 1, 472, 18' alt=''>			</map>	   		<img src='/images/top-open-account1.gif' height='24' width='473' border='0' usemap='#FPMap0'></td>")document.write("</tr>")document.write("<tr>")document.write("<td align='right' height='28' valign='bottom'><map name='FPMap2'><area href='javascript:mainTracker._link("../supertrader/powertrader/index.html")' shape='rect' coords='6, 2, 98, 13'><area href='../home/index.shtml' shape='rect' coords='102, 3, 136, 12'><area href='javascript:FAQ();' shape='rect' coords='142, 2, 169, 11'><area href='/aboutus/careers.html' shape='rect' coords='172, 2, 211, 13'><area href='../termsandcondition/sitemap.html' shape='rect' coords='215, 4, 259, 12'><area href='../contactus/contactus.html' shape='rect' coords='263, 4, 311, 12'></map><img border='0' src='/images/top_investor_new.gif' width='318' height='14' usemap='#FPMap2'></td>")document.write("</tr>")document.write("</table>")}  function headersuper()  {document.write("<table border='0' cellpadding='0' cellspacing='0' width='758'>")document.write("<tr>")document.write("<td width='1%' align='left' valign='top'><a href='/home/index.html'></a></td>")document.write("<td width='34%' align='left' valign='top'><a href='/home/index.html'><img src='/images/investor/logo_red_bg.gif' height='56' width='176' border='0'></a></td>")document.write("<td width='65%' align='right' valign='top'>")document.write("<table border='0' cellpadding='0' cellspacing='0'>")document.write("<tr>")document.write("<td align='right' height='28' valign='top'><map name='FPMap0'>	<area href='/business_associates/accountsection/index.html' target='_blank'  shape='rect' coords='10, 1, 123, 18' alt=''><area href='https://kstrade.kotaksecurities.com/openindex.html' target='_blank'  shape='rect' coords='130, 0, 226, 17' alt=''><area href='../jsp/account/openaccount.jsp' shape='rect' coords='236, 0, 345, 18' alt=''><area href='javascript:Popup();' shape='rect' coords='351, 1, 472, 18' alt=''></map><img src='/images/top-open-account1.gif' height='24' width='473' border='0' usemap='#FPMap0'></td>")document.write("</tr>")document.write("<tr>")document.write("<td align='right' height='28' valign='bottom'><map name='FPmap2'><area href='../../home/index.html' shape='rect' coords='2,2,80,15'><area href='/supertrader/powertrader/index.html' shape='rect' coords='80,2,120,15'><area href='javascript:FAQ();' shape='rect' coords='120,2,150,15'> <area href='/supertrader/termsandcondition/sitemap.html' shape='rect' coords='155,2,190,15'><area href='/supertrader/termsandcondition/sitemap.html' shape='rect' coords='155,2,190,15'><area href='/supertrader/contactus/contactus.html' shape='rect' coords='200,2,260,15'></map><img src='/images/top_trader.gif'  border='0' usemap='#FPmap2'></td>")document.write("</tr>")document.write("</table>")}
