function wopen(url,popupname,attributes){ 
win = window.open(url,popupname,attributes); 
win.focus(); 
} 

function check()
{

//var oldpass=document.frmPass.oldpass.value;
var newpass=document.frmPass.newpass.value;
var rnewpass=document.frmPass.rnewpass.value;
if( newpass != "" || rnewpass != "")
	{
		if( newpass ==""||rnewpass=="")
		{
			 alert("Please type all the details and then submit");
			 document.frmPass.newpass.focus();
			 return false;
		}
		else
		{
			if(newpass != rnewpass)
				{
					alert("New password and Retype New password should be same");
					document.frmPass.newpass.focus();
					return false;
				}
			else
				return true;

		}	
}

} // END OF FUNCTION
	
function OpenCrop(sURL){
		           var wx=window.screen.width-10;
                   var wy=window.screen.height-80;
				   var cont='width='+wx+',height='+wy+',scrollbars=auto,left=0,top=0';
                   ssh = window.open(sURL,'_new',cont);
}



timeID = 5;
stcnt = 11;
msg = "<< Insights & Securities by MyCPIndia Web Base System >>";
wmsg = new Array(33);
wmsg[0] = msg;
blnk = "                                                               ";

for (i = 1; i < 32; i++) {
b = blnk.substring(0, i);
wmsg[i] = "";

for (j = 0; j < msg.length; j++) wmsg[i] = wmsg[i] + msg.charAt(j) + b;
}

function wiper() {
if (stcnt > -1) str = wmsg[stcnt]; 
else str = wmsg[0];
if (stcnt-- < -40) stcnt = 31;
status = str;
clearTimeout(timeID);
timeID = setTimeout("wiper()", 150);
}


var rowHighlight = true // turn on row highlights

var colHighlight = true // turn off row highlights

function getElement(el) {

    var tagList = new Object

    for (var i = 1; i < arguments.length; i++)

      tagList[arguments[i]] = true

    while ((el!=null) && (tagList[el.tagName]==null))

      el = el.parentElement

    return el

}

function checkHighlight(which) {

    var el = getElement(event.srcElement,"TH","TD")

    if (el==null) return

    if ((el.tagName=="TH") && (colHighlight)) {

      var idx = el.cellIndex

      var TABLE = getElement(el, "TABLE")

      var column = TABLE.all.tags("COL")[idx]

      if (which)

        column.className="cover"

      else

        column.className=""

   }      

    if ((el.tagName=="TD") && (rowHighlight)) {

      var row = getElement(el, "TR") 

      var TABLE = getElement(row, "TABLE")

      if (which) 

        row.className = "rover"

      else

        row.className = ""

      cache = row

    }

}

