
function displaymessage(var1)
{
alert(var1);
}

function checkhttps()
{
var loc = new String(window.parent.document.location); 
if (loc.indexOf("https://")!= -1) {

return true; }
else {
return false;}
}




function checksecure(){

	if (checkhttps()){
	
	Modalbox.show("login.html", {title: "Tahoe Donner Member Login", width: 500});}
	
	else{
	goSecure();}	
	}
	



function querySt(ji) {
hu = window.location.search.substring(1);
gy = hu.split("&");
for (i=0;i<gy.length;i++) {
ft = gy[i].split("=");
if (ft[0] == ji) {
return ft[1];
}
}
}

function goSecure()
{
var oldURL = window.location.hostname + window.location.pathname;
var newURL = "https://" + oldURL + "?login=1";
window.location = newURL;
}
function GoLogin(){
	if (querySt("login")){
	if (checkhttps()){
	Modalbox.show("login.html", {title: "Tahoe Donner Member Login", width: 500});}
	
}
}

