function ShowSecurePopUp(Name, File, w, h, Status, Resize, Scroll){
	var t=0, l = 0, winstring = "";
	var infowindow;

	if(infowindow){
		if(!infowindow.closed) infowindow.close()
	}

	l = ((screen.width / 2) - (w / 2))
	t = ((screen.height / 2) - (h / 2))

	winstring = "width=" + w + ", height=" + h + ",left=" + l + ",top=" + t +  ",status=" + Status + ",resizable=" + Resize + ",scrollbars=" + Scroll;

	infowindow = window.open(File,Name,winstring);
	return;
}

function bookingTerms(strType){


//	booking_request.cfm?id=' + idTmp + '&type=' + strType;
	var strUrl = strSecureBaseHref + '/booking_terms.cfm';

	ShowSecurePopUp('winBookingTerms', strUrl, 500, 400, 'no', 'no', 'yes');


}

function ShowPopUpLogin(){
	var Name='winLogin';
	var File="Login.cfm";
	var w=300;
	var h=200;
	var Status="no";
	var Resize="no";
	var Scroll="no";
	var t=0, l = 0, winstring = "";
	var infowindow;

	if(infowindow){
		if(!infowindow.closed) infowindow.close()
	}

	l = ((screen.width / 2) - (w / 2))
	t = ((screen.height / 2) - (h / 2))

	winstring = "width=" + w + ", height=" + h + ",left=" + l + ",top=" + t +  ",status=" + Status + ",resizable=" + Resize + ",scrollbars=" + Scroll;

	infowindow = window.open(File,Name,winstring);
}
function isEmail(eml) {
	if(eml.indexOf("@") != "-1" &&
		eml.indexOf(".") != "-1" &&
		eml != "")
	return true;
	else return false;
}

function isNumWithSpace(s){
 var i;
  if(s.length==0){
  	return false;
  }
 for (i = 0; i < s.length; i++){
  // Check that current character is number or space.
  var c = s.charAt(i);
  if(c== " "){
  	c="0"
  }
  if (((c < "0") || (c > "9"))) return false;
 }
 // All characters are numbers.
 return true;
}