function checkIt()
		{
			if(document.frmlgn.lgn.value=="")
			{
				alert("Please enter user ID");
				return false;
			}
			if(document.frmlgn.pswd.value=="")
			{
				alert("Please Enter Password");
				return false;
			}
			return true
		}


function resetme()
{
document.frmlgn.lgn.value="";
document.frmlgn.pswd.value="";
}

function forgetSend()
		{
			var isdis = window.open("http://investwell.in/jsp/imail.jsp?src=f&ta=mukesh@wealthcareindia.com","fem","toolbar=no,location=no,menubar=no,scrollbars=yes,width=500,height=200")
		}
		
function redirect()
{
	if (checkIt())
	{
		var width=window.screen.width;
		var height=window.screen.height-75;
		var userName=document.frmlgn.lgn.value;
		var password=document.frmlgn.pswd.value;
		var uname='';
		var pwd='';

		for(var i=0; i<userName.length; i++ )
		{
			uname+=userName.charCodeAt(i)+'~';
		}
		for(var j=0; j<password.length; j++ )
		{
			pwd+=password.charCodeAt(j)+'~';
		}
		url="http://investwell.in/jsp/beforeLogin.jsp?who=c&lgn="+uname+"&pswd="+pwd+"&brokerId=10014";
		var win=window.open('',"investwell","toolbar=no,top=0,left=0,width="+width+",height="+height+"location=no,status=				0,menubar=no,scrollbars=yes,resizable=yes");
		win.status="";
		win.location=url;
		document.frmlgn.lgn.value="";
		document.frmlgn.pswd.value="";
	}
	return false;
}

function newspage()
{
var width=window.screen.width;
var height=window.screen.height-75;
url="http://www.investwell.in/news.htm";
var wind=window.open('',"news", "toolbar=no,top=0,left=0,location=yes,status=0,menubar=no,scrollbars=yes, resizable=yes");
wind.status="";
wind.location=url;
}

var newwin;
function launchwin(winurl,winname)
{
		
	newwin = window.open(winurl,winname,"toolbar=no,top=0,left=0,location=no,status=0,menubar=no,scrollbars=no,resizable=no,width=515,height=515");
	
		//setTimeout('newwin.focus();',250);
	
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}