﻿function GlobalsClass(){
	this.debug = false;
}
GlobalsClass.prototype.alert = function(aText){
	if (!this.debug) return;
	alert(aText);
}
GlobalsClass.prototype.disableSubmit = function disableSubmit(e){
	var characterCode;

	if(e && e.which){ 
		e = e;
		characterCode = e.which;
	}else{
		e = window.event;
		characterCode = e.keyCode;
	}
	if(characterCode == 13){
		e.cancelBubble = true;
		return false;
	}
	return true;
}
var Globals = new GlobalsClass();

function LoadDone(aId){
	if (!aId) aId = "BackLoading";
	document.getElementById(aId).style.display="none";
}

function OpenPopup(URI, Width, Height) {
   var Settings = "scrollbars=yes,resizable=yes,";
   Settings = Settings + "width=" + Width;
   Settings = Settings + ",height=" + Height; 
   theNewWin = window.open(URI, 'popup', Settings);
   theNewWin.focus();
}
function OpenPopupFull(URI) {
   if (screen.height) {
     var ourHeight = Math.round(screen.height-100);
   } else {
     ourHeight = 500;
   }
   var Settings = "scrollbars=yes,resizable=yes,";
   Settings = Settings + "width=660,";
   Settings = Settings + "height=" + ourHeight; 
   Settings = Settings + "left=0,";
   Settings = Settings + "top=0,";
   theNewWin = window.open(URI, 'CV', Settings);
   theNewWin.focus();
}




