function popup(url,name,height,width,top,left, scroll) {
/***********************************************
Parameters: URL,Window Name,Window Height,Width,Top position and Left Position and scroll(yes or no).
Issues: 
	Cookies Set in the Opener is not availble on the new Browser Window
Solution:
	The Cookie Values are appended to URL Command Line and Set again from Check Validation
	include. Cookie writeing in the opening page is driven by popwin flag
******************************************************/

var props;
var suffix = '?';
var booprefix = false;
for (var i=0; i<url.length; i++)
	{
	if (url.substring(i,i + 1) == '?')
		{
		suffix = '&';
		}
	}
   url = url + suffix + "popwin=true";
	props = "height=" + height + ",width=" + width;
	props = props +	",location=no,scrollbars=" + scroll + ",menubars=no,toolbars=no,resizable=yes,";
	props = props +	"top=" + top + ",left=" + left;
	window.open(url, name, props);
}

function tab(id1,id2,len)
{
  var id
    id = document.all.item(id1).value;
    if(id)
    {
		if (id.length == len)
		{
			document.all.item(id2).focus();
		}
	}else{
		if (event.srcElement.value.length == len)
		{
			intIndex = event.srcElement.sourceIndex + 1;
			document.all[intIndex].focus();
		}		
	}			
}   
