<!--

function showDialog(lngPageID){
	var strWindowURL = 'dialog.asp?id=' + lngPageID;
	var intWidth = 0;
	var intHeight = 0;
				
	if (navigator.userAgent.indexOf("MSIE") > 0) {
		intWidth = document.body.clientWidth;
		intHeight = document.body.clientHeight;
	} else {
		intWidth = window.outerWidth;
		intHeight = window.outerHeight;
	}
	var intTop = 0;
	var intLeft = 0;
	var intWindowWidth = 640;
	var intWindowHeight = 515;
	intTop = ((intHeight - intWindowHeight) / 2);
	intLeft = ((intWidth - intWindowWidth) / 2);
	var strWindowName = name;
	var strOptions = "toolbar=0" +
	",directories=0" +
	",status=0" +
	",menubar=0" +
	",resizable=no" +
	",scrollbars=no" +
	",width=" + intWindowWidth +
	",height=" + intWindowHeight +
	",top=" + intTop +
	",left=" + intLeft;
	win2 = window.open(strWindowURL,strWindowName,strOptions);
	win2.focus();
}

function showDetailedDialog(strType,strPolicy,intID){
	var strWindowURL = 'details.asp?type=' + strType + '&policy=' + strPolicy + '&id=' + intID;
	var intWidth = 0;
	var intHeight = 0;
				
	if (navigator.userAgent.indexOf("MSIE") > 0) {
		intWidth = document.body.clientWidth;
		intHeight = document.body.clientHeight;
	} else {
		intWidth = window.outerWidth;
		intHeight = window.outerHeight;
	}
	var intTop = 0;
	var intLeft = 0;
	var intWindowWidth = 640;
	var intWindowHeight = 515;
	intTop = ((intHeight - intWindowHeight) / 2);
	intLeft = ((intWidth - intWindowWidth) / 2);
	var strWindowName = name;
	var strOptions = "toolbar=0" +
	",directories=0" +
	",status=0" +
	",menubar=0" +
	",resizable=no" +
	",scrollbars=no" +
	",width=" + intWindowWidth +
	",height=" + intWindowHeight +
	",top=" + intTop +
	",left=" + intLeft;
	win2 = window.open(strWindowURL,strWindowName,strOptions);
	win2.focus();
}

function GoWindowURL(url, name, width, height){
	var strWindowURL = url
	var intWidth = 0;
	var intHeight = 0;
				
	if (navigator.userAgent.indexOf("MSIE") > 0) {
		intWidth = document.body.clientWidth;
		intHeight = document.body.clientHeight;
	} else {
		intWidth = window.outerWidth;
		intHeight = window.outerHeight;
	}
	var intTop = 0;
	var intLeft = 0;
	var intResize  = 1; //0 = position specified above : 1 = dynamically positioned
	var intWindowWidth = width;
	var intWindowHeight = height;
	if(intResize == 1){
		intTop = ((intHeight - intWindowHeight) / 2);
		intLeft = ((intWidth - intWindowWidth) / 2);
	} else {
		intTop = 0;
		intLeft = 0;
	}
	var strWindowName = name;
	var strOptions = "toolbar=0" +
	",directories=0" +
	",status=0" +
	",menubar=0" +
	",resizable=no" +
	",scrollbars=yes" +
	",width=" + intWindowWidth +
	",height=" + intWindowHeight +
	",top=" + intTop +
	",left=" + intLeft;
	win2 = window.open(strWindowURL,strWindowName,strOptions);
	win2.focus();
}

function checkTerms2(){
	
	var objForm = document.forms['Details'];
	var objSubmit = objForm['accept_button'];
	var blnDisabled = true;
	var strClass = "disabledbutton";
	if(objForm['AgreeTerms'].checked){
		blnDisabled = false;
		strClass = "formbutton";
	}
	objSubmit.className = strClass;
	objSubmit.disabled = blnDisabled;

}

function checkTerms3(){
	
	var objForm = document.forms['Details'];
	var objSubmit = objForm['accept_button'];
	var blnDisabled = true;
	var strClass = "disabledbutton";
	if(objForm['Agree_Terms'].checked){
		blnDisabled = false;
		strClass = "formbutton";
	}
	objSubmit.className = strClass;
	objSubmit.disabled = blnDisabled;

}

function goURL(url){
	document.location.href = url;
}

function submitForm(strForm){
	document.forms[strForm].submit();
}

function goBack(){
	history.go(-1);
}

function toTop(){
	scroll(0,0);
}

//-->
