﻿// JScript File
function openWindow(thePage, theHeight, theWidth){
    theWin = window.open(thePage, 'Email Listing', "height=" + theHeight + ",width=" + theWidth + ",status=no,toolbar=no,menubar=no,location=no;");
	var scrLeft = (screen.width - theWidth)/2
	var scrTop = (screen.availHeight - theHeight)/2 - 20
    theWin.moveTo(scrLeft,scrTop);
}

function DisContext(){
    var message="DiamondJacks Casino and Hotel \n All Rights Reserved";
    alert(message);
    return false;
}

function defOpen(myPage, theName){
	if(document.forms[0].frmResolution.value == 0){
		alert("Please choose a resolution");
		return false;
	}
	if(document.forms[0].frmResolution.value == 1){
		defWidth = 740
		defHeight = 530
	}
	if(document.forms[0].frmResolution.value == 2){
		defWidth = 964
		defHeight = 698
	}
	if(document.forms[0].frmResolution.value == 3){
		defWidth = 1210 //1217
		defHeight = 885
	}
	OpenWin(myPage, theName, defHeight, defWidth)
}

function ChangePage(PageName){
    parent.Main.location.href = PageName
}
