function getSMSdates(inday,outday,inmonth,outmonth,inyear,outyear){
	document.forms[0].inday.value = inday;
	document.forms[0].outday.value = outday;
	document.forms[0].inmonth.value = inmonth;
	document.forms[0].outmonth.value = outmonth;
	document.forms[0].inyear.value = inyear;
	//document.forms[0].outyear.value = outyear;
	document.forms[0].submit();
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function openwin() { //v2.0
var scrwidth =screen.availWidth-10
var scrheight =screen.availheight-30
		window.open("/MultiMedia_Tour.asp","","width=" + scrwidth + ",height=" + scrheight + ",top=0,left=0");
}
function LTrim(str)
        {
               var whitespace = new String(" \t\n\r");
               var s = new String(str);
                if (whitespace.indexOf(s.charAt(0)) != -1) {

                    var j=0, i = s.length;
                    while (j < i && whitespace.indexOf(s.charAt(j)) != -1)
                        j++;
                    s = s.substring(j, i);
                }

                return s;
        }
function RTrim(str)
       {
                var whitespace = new String(" \t\n\r");
                var s = new String(str);
                if (whitespace.indexOf(s.charAt(s.length-1)) != -1) {
                    var i = s.length - 1;       
                    while (i >= 0 && whitespace.indexOf(s.charAt(i)) != -1)
                        i--;
                    s = s.substring(0, i+1);
                }

                return s;
        }


function Trim(str)
        {
                return RTrim(LTrim(str));
        }
function ClickOpen_old()
{
	//resize window script
NS4=(document.layers);
var embedWidth = (NS4) ? innerWidth : screen.width;
	if (embedWidth==1280){
		window.open('https://reservations.marcushotels.com/smsworld/wc.dll?smsWorld~availbox~&wsi=timber&sourceid=<%=Session("sourceid")%>','height=930,width=734,top=0,left=0,scrollbars=yes,status=1');
	}
	else if (embedWidth==1024){
		window.open('https://reservations.marcushotels.com/smsworld/wc.dll?smsWorld~availbox~&wsi=timber&sourceid=<%=Session("sourceid")%>','height=680,width=734,top=0,left=0,scrollbars=yes,status=1');
	}
	else if (embedWidth > 1150){
		window.open('https://reservations.marcushotels.com/smsworld/wc.dll?smsWorld~availbox~&wsi=timber&sourceid=<%=Session("sourceid")%>','height=770,width=734,top=0,left=0,scrollbars=yes,status=1');
	}
	else if (embedWidth==800){
		window.open('https://reservations.marcushotels.com/smsworld/wc.dll?smsWorld~availbox~&wsi=timber&sourceid=<%=Session("sourceid")%>','height=500,width=734,top=0,left=0,scrollbars=yes,status=1');
	}
	else if (embedWidth==640){
		window.open('https://reservations.marcushotels.com/smsworld/wc.dll?smsWorld~availbox~&wsi=timber&sourceid=<%=Session("sourceid")%>','height=500,width=734,top=0,left=0,scrollbars=yes,status=1');
	}
	else {
		window.open('https://reservations.marcushotels.com/smsworld/wc.dll?smsWorld~availbox~&wsi=timber&sourceid=<%=Session("sourceid")%>','height=500,width=734,top=0,left=0,scrollbars=yes,status=1');
	}
}
function ClickOpenRev(sourceid)
{
	//resize window script
NS4=(document.layers);
var embedWidth = (NS4) ? innerWidth : screen.width;
	if (embedWidth==1280){
		window.open('https://reservations.marcushotels.com/smsworld/wc.dll?smsWorld~availbox~&wsi=timber&sourceid='+sourceid,'','height=930,width=734,top=0,left=0,scrollbars=yes,status=1');
	}
	else if (embedWidth==1024){
		window.open('https://reservations.marcushotels.com/smsworld/wc.dll?smsWorld~availbox~&wsi=timber&sourceid='+sourceid,'','height=680,width=734,top=0,left=0,scrollbars=yes,status=1');
	}
	else if (embedWidth > 1150){
		window.open('https://reservations.marcushotels.com/smsworld/wc.dll?smsWorld~availbox~&wsi=timber&sourceid='+sourceid,'','height=770,width=734,top=0,left=0,scrollbars=yes,status=1');
	}
	else if (embedWidth==800){
		window.open('https://reservations.marcushotels.com/smsworld/wc.dll?smsWorld~availbox~&wsi=timber&sourceid='+sourceid,'','height=500,width=734,top=0,left=0,scrollbars=yes,status=1');
	}
	else if (embedWidth==640){
		window.open('https://reservations.marcushotels.com/smsworld/wc.dll?smsWorld~availbox~&wsi=timber&sourceid='+sourceid,'','height=500,width=734,top=0,left=0,scrollbars=yes,status=1');
	}
	else {
		window.open('https://reservations.marcushotels.com/smsworld/wc.dll?smsWorld~availbox~&wsi=timber&sourceid='+sourceid,'','height=500,width=734,top=0,left=0,scrollbars=yes,status=1');
	}
}

function ClickOpen15()
{
	window.open('http://www.timberridgeresort.com/accommodations/FAQ.asp','','height=600,width=550,top=0,left=0,scrollbars=yes,status=1');
}

function ClickOpen1()
{
	window.open('https://reservations.marcushotels.com/smsworld/wc.dll?smsworld~availbox~&wsi=phildemo','','height=500,width=734,top=0,left=0,scrollbars=yes,status=1');
}
       function NewWindow(url, windowName, w, h, scroll) {
           winprops = 'height='+h+',width='+w+',scrollbars='+scroll+',resizable';
           win = window.open(url, windowName, winprops);
           if (parseInt(navigator.appVersion) >= 4) { 
              	win.window.focus(); 
           }
        }
