// JavaScript Document
function showResnetPage(offer){
	/* parse date/month */
	/* sample = " 2004-07 " */
	month = document.mainForm.res_months.value;
	year = document.mainForm.res_year.value;
	day = document.mainForm.res_day.value;

	var requestDate = new Date(year,month,day); 
	var today = new Date(); 

	//if (document.getroom.stayStartMonth.value == ""){
		//alert("Please choose the month of your stay.");
		//return false;
	//}

	//if (document.getroom.stayStartDay.value == ""){
		//alert("Please choose the day of your stay.");
		//return false;
	//}

	if (requestDate < today){
		alert("Please choose a current date.");
		return false;
	}
	
	//var url = "https://reservations.playlv.com/cgi-bin/LANSAWEB?procfun+rn+resnet+R15+funcparms+UP(A2560):;";
	var url = "https://reservations.playlv.com/cgi-bin/LANSAWEB?procfun+rn+resnet+lvc+funcparms+UP(A2560):;web00";
	url += ";";

	url += month+day+year.substring(2,4)+";";

	staynights = "0"+document.mainForm.res_nights.value;
	url += staynights+";";

	stayGuests = "0"+document.mainForm.res_guests.value;
	url += stayGuests+";";

	url += "?";

	//window.location = url;
	newTop = self.screenTop+100;
	newLeft = self.screenLeft+100;
	features = "top="+newTop+", left="+newLeft+", width=820, height=620, location=no, menubar=no, status=no, toolbar=no, scrollbars=yes, resizable=no";
	window.open(url, "gaming_channel", features);
}

function callpop(URL) {
newWindow = window.open(URL, "newwindow", "toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,status=no,location=no,width=800,height=390");
}