function inntopiaCheck(origin,sku,region,country,state,city,orient,center,bsize,bcolor,width,height,csize,ccolor,backgroundcolor,fcolor,fsize,fface)	{

document.write('<form method="get" action="http://www.inntopia.com/roomsearch/roomsearch.html">');

document.write('<input type="hidden" name="Origin" value='+origin+'>');
document.write('<input type="hidden" name="SKU" value='+sku+'>');
document.write('<input type="hidden" name="region" value='+region+'>');
document.write('<input type="hidden" name="country" value='+country+'>');
document.write('<input type="hidden" name="state" value='+state+'>');
document.write('<input type="hidden" name="city" value='+city+'>');



monthnames = new Array(
"Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
"Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec");

monthdays = new Array(12);
monthdays[0]=31;
monthdays[1]=28;
monthdays[2]=31;
monthdays[3]=30;
monthdays[4]=31;
monthdays[5]=30;
monthdays[6]=31;
monthdays[7]=31;
monthdays[8]=30;
monthdays[9]=31;
monthdays[10]=30;
monthdays[11]=31;
todayDate=new Date();
thisday=todayDate.getDay();
thismonth=todayDate.getMonth();
thisdate=todayDate.getDate();
thisyear=todayDate.getYear();
thisyear = thisyear % 100;
thisyear = ((thisyear < 50) ? (2000 + thisyear) : (1900 + thisyear));
if (((thisyear % 4 == 0)
&& !(thisyear % 100 == 0))
||(thisyear % 400 == 0)) monthdays[1]++;


document.write('<table cellspacing="0" cellpadding="0" border='+bsize+' bordercolor='+bcolor+'>');
document.write('<tr>');
document.write('<td>');
document.write('<table cellspacing="0" width='+width+' height='+height+' border='+csize+' bordercolor='+ccolor+' bgcolor='+backgroundcolor+'>');

document.write('<tr>');
if (orient=='v') {
document.write('<td>');
}
if (orient=='h') {
document.write('<td colspan="3">');
}
if (center=='y') {
document.write('<center>');
}
document.write('<b><FONT FACE='+fface+' color='+fcolor+' SIZE='+fsize+'>Check Availability and Book Online</FONT></b>');
if (center=='y') {
document.write('</center>');
}
document.write('</td>');
document.write('</tr>');

document.write('<tr>');
document.write('<td>');
if (center=='y') {
document.write('<center>');
}
document.write('<FONT FACE='+fface+' color='+fcolor+' SIZE='+fsize+'><B>Check In Date:</B><FONT><br>');
document.write('<table>');
    document.write('<tr>');
	document.write('<td>');
	document.write('<select name=fromMonth>');
	for (var i = 0; i < 12; i++) {
	if (i<9) {
		var iz='0'+(i+1);
	}
		else {
		var iz=''+(i+1);
		}
	if (i==thismonth) {
	document.write('<option selected value='+iz+'>'+monthnames[i]+'</option>');
		}
		else {
	document.write('<option value='+iz+'>'+monthnames[i]+'</option>');
		}
	}
	document.write('</select>');

	document.write('</TD><TD>');

	document.write('<select name=fromDay>');
	count=1;
	while (count <= 31) {

	if (count==thisdate) {
	document.write('<option selected value='+count+'>'+count+'</option>');
	}
	else {
	document.write('<option value='+count+'>'+count+'</option>');
	}
	count++;
	}
	document.write('</select>');

	document.write('</TD><TD>');

	nextyear = (thisyear+1);
	document.write('<select name=fromYear>');
	document.write('<option selected value='+thisyear+ '>'+thisyear+'</option>');
	document.write('<option value='+nextyear+'>'+nextyear+'</option>');
document.write('</select>');

	document.write('</td>');
   document.write('</tr>');
document.write('</table>');
if (center=='y') {
document.write('</center>');
}
document.write('</td>');
if (orient=='v') {
document.write('</tr>');
document.write('<tr>');
}
document.write('<td>');
if (center=='y') {
document.write('<center>');
}
document.write('<FONT FACE='+fface+' color='+fcolor+' size='+fsize+'><B>Check Out Date:</B><font><br>');
// to date begin
document.write('<table>');
document.write('<tr>');
	document.write('<td>');
		document.write('<select name=toMonth>');
		for (var j = 0; j < 12; j++) {
		if (j<9) {
			var jz='0'+(j+1);
		}
		else {
			var jz=''+(j+1);
		}
		if (j==thismonth) {
		document.write('<option selected value='+jz+'>'+monthnames[j]+'</option>');
			 }
		else {
		document.write('<option value='+jz+'>'+monthnames[j]+'</option>');
			 }
		}
		document.write('</select>');

		document.write('</TD><TD>');

		document.write('<select name=toDay>');
		count2=1;
		while (count2 <= 31) {

		if (count2==(thisdate+1)) {
		document.write('<option selected value='+count2+'>'+count2+'</option>');
		}
		else {
		document.write('<option value='+count2+ '>'+count2+'</option>');
		}
		count2++;
		}
		document.write('</select>');

		document.write('</TD><TD>');

		document.write('<select name=toYear>');
		document.write('<option selected value='+thisyear+ '>'+thisyear+'</option>');
		document.write('<option value='+nextyear+'>'+nextyear+'</option>');
document.write('</select>');

	document.write('</td>');
document.write('</tr>');
document.write('</table>');
if (center=='y') {
document.write('</center>');
}
document.write('</td>');
if (orient=='v') {
document.write('</tr>');
document.write('<tr>');
}
document.write('<td>');

// end todate code

document.write('<p>');
if (center=='y') {
document.write('<center>');
}
document.write('<FONT FACE='+fface+' color='+fcolor+' size='+fsize+'><B>Number of Guests:</B><font><br>');
document.write('<small>Adults:</small><input name="People0" type=text value="2" size="2" maxlength="2"><NOBR>');
document.write('<small>&nbsp;Children:</small><input name="People1" type=text value="0" size="2" maxlength="2"><br>');
if (center=='y') {
document.write('</center>');
}
document.write('</td>');
document.write('</tr>');

document.write('<tr>');
if (orient=='v')	{
document.write('<td>');
}
if (orient=='h')	{
document.write('<td colspan="3">');
}
if (center=='y') {
document.write('<center>');
}
document.write('<input type="submit" value="Check Availability">');
if (center=='y') {
document.write('</center>');
}
document.write('</td>');
document.write('</tr>');
document.write('</table>');
document.write('</td>');
document.write('</tr>');
document.write('</table>');
document.write('</form>');
//
// end function inntopiaCheck
}
