function openwin(fileurl)
{
	fileurl= fileurl + "nav/searchnav.asp?amc=";
	temp=document.nav.amc.value;
	fileurl = fileurl + temp;
	popupWin = window.open(fileurl,'NAV','toolbar=yes,menubar=yes,location=no,scrollbars=yes,resizable=yes,left=50,top=50');
	//window.open(fileurl);
	return false;

}
//for login
function openwinlogin()
{
	url="http://webmaster/newnjindia/njsql/client/login.asp?";
	popupWin = window.open(url,'Login','toolbar=yes,menubar=yes,location=no,scrollbars=yes,resizable=yes,left=50,top=50');
}

function dateselect(vname)
{
	today = new Date();
	thismonth = today.getMonth()+1;
	thisyear = today.getYear();	
	thisday = today.getDate();
	/* NETSCAL / MOZILA EFFECT */
	if(thisyear<1900)
		thisyear+=1900;
	days=vname + "days";
	months=vname + "months";
	years=vname + "years";

	//Display days

	document.write(" <select name=");
	document.write(days);
	document.write(" size=1>");
	for (var theday = 1; theday <= 31; theday++) {
		var theday = "" + theday;
		if (theday.length == 1) {
			theday = "0" + theday;
		}
		document.write("<option value='" + theday + "' ");
		if (theday == thisday) document.write(" selected");
		document.write(">");
		document.write(theday);
	}
	document.write("</select>");

	//display month
	document.write(" <select name=");
	document.write(months);
	document.write(" size=1>");
	for (var themn = 1; themn <= 12; themn++) {
		var themn = "" + themn;
		if (themn.length == 1) {
			themn = "0" + themn;
		}
		document.write("<option value='" + themn + "' ");
		if (themn == thismonth) document.write(" selected");
		document.write(">");
		document.write(themn);
	}
	document.write("</select>");


	//display last five year

	document.write(" <select name=");
	document.write(years);
	document.write(" size=1>");
	for (var theyr = thisyear; theyr > 1992; theyr--) {
		document.write("<option value='" + theyr + "' ");
		if (theyr == thisyear) document.write(" selected");
		document.write(">");
		document.write(theyr);
	}
	document.write("</select>");
}	//end of function


