function popupWindow(lnk, t, l, w, h) /* A SIMPLE FUNCTION TO CALL A POPUP OF YOUR SIZE & LOCATION - MAQK - 23rd JAN' 2007*/
			{		
				var dw;
				//alert('YES');
				//val2 = 'forgetpassword.aspx';
				//alert(lnk+t + l + w + h);
				dw   = window.open(lnk,'', 'top='+ t + ', left=' + l + ', width=' + w + ', height=' + h + ', menubar=no, resizable=no, scrollbars=no');
				window.focus();
				dw.focus();
			}
function popupWindow1(lnk, t, l, w, h) /* A SIMPLE FUNCTION TO CALL A POPUP OF YOUR SIZE & LOCATION - MAQK - 23rd JAN' 2007*/
			{		
				var dw;
				//alert('YES');
				//val2 = 'forgetpassword.aspx';
				//alert(lnk+t + l + w + h);
				dw   = window.open(lnk,'', 'top='+ t + ', left=' + l + ', width=' + w + ', height=' + h + ', menubar=no, resizable=yes, scrollbars=yes');
				window.focus();
				dw.focus();
			}
			
function popup1(lnk, t, l, w, h, iScroll) /* A SIMPLE FUNCTION TO CALL A POPUP OF YOUR SIZE & LOCATION - MAQK - 23rd JAN' 2007*/
			{		
				var dw;
				//alert('YES');
				//val2 = 'forgetpassword.aspx';
				//alert(lnk+t + l + w + h);
				dw   = window.open(lnk,'', 'top='+ t + ', left=' + l + ', width=' + w + ', height=' + h + ', menubar=no, resizable=no, scrollbars=' + iScroll );
				//window.focus();
				dw.focus();
			}

			
function launchResearchReport()
{
	popup1('research/researchRep.aspx',0,0,1024,768,'yes');
}

function launchResearchReport2()
{
	popup1('../researchRep.aspx',0,0,1024,768,'yes');
}
function launchMarketReport()
{
	popup1('ksetats/marketReport.aspx',0,0,1024,768,'yes');
}			
function launchdaylight()
{
	popup1('Research/Research Reports/General/daylight_flash.pdf',0,0,1024,768,'yes');
}		
function launchtwilight()
{
	popup1('Research/Research Reports/General/twilight_flash.pdf',0,0,1024,768,'yes');
}	
function launchfp()
{
	popup1('forgetpassword.aspx',50,50,550,200,'yes');
}			
function comboCh(ddl,btnId)/*chcks if combo index==-1 or 0 then disable the Form submit button*/
{	
	//ddl=this;
	//alert('comboCh - ' + btnId);
	if(ddl.selectedIndex<=0)
	{
		//alert('comboCh111 - ' + btnId);
		document.getElementById(btnId).disabled=true;
		document.getElementById("lblError").style.visibility="Visible";
	}
	else
	{
		//alert('comboCh000 - ' + btnId);
		document.getElementById(btnId).disabled=false;
		//alert(document.getElementById("lblError").id);
		//document.getElementById("lblError").style.visibility="Hidden";
	}
	/**/
	//validateCombo();
	//validateCombo();
}


