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();
if(thisyear < 999)
	thisyear += 1900;
thisday = today.getDate();
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");
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");
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 = 0; theyr <= 12; theyr++) {
var theyr = "" + theyr;
if (theyr.length == 1) {
theyr = "0" + theyr;
}
document.write("<option");
if (theyr == thisyear) document.write(" selected");
document.write(">");
document.write(thisyear-theyr);
}
document.write("</select>");


}
