function DoNothing() {
	// this function does nothing
}

function Page_OnLoad() {
	// any common onload method to be called here
}

function Cancel() {
	// simple function to cancel a client side event
	return false
}

function ConfirmDelete(obj) {
	if (confirm('Are you sure you want to delete this record')) {
		return true;
	}
	else {
		return false;
	}
}

function DefaultDocument() {
	document.location.replace('Default.aspx')
}

function ToggleMenu() {
	var MenuItem = arguments[0];

	if (!document.all) {
		if (document.all['rowMenu' + MenuItem].className == "Menu") {
			document.all['rowMenu' + MenuItem].className = "MenuHover";
		}
		else {
			document.all['rowMenu' + MenuItem].className = "Menu";
		}
	}
	else {
		if  (document.getElementById('rowMenu' + MenuItem).className == "Menu") {
			document.getElementById('rowMenu' + MenuItem).className = "MenuHover";
		}
		else {
			document.getElementById('rowMenu' + MenuItem).className = "Menu";
		}
	}
}

function MenuHoverOver() {
	try {
		var ImageName = arguments[0];
		document.images['MenuMore' + ImageName].src = "../Images/More.Hover.gif";
	}
	catch (ex) {
		// don't alert any exceptions
		// if the browser doesn't support try catch statement thats too bad
	}
}

function MenuHoverOut() {
	try {
		var ImageName = arguments[0];
		document.images['MenuMore' + ImageName].src = "../Images/More.gif";
	}
	catch (ex) {
		// don't alert any exceptions
		// if the browser doesn't support try catch statement thats too bad
	}
}

function DisplayWaitingMessage(obj) {

	
	try {
		if (obj.disabled == false) {
			var WaitingMessage = document.getElementById('Waiting');

			var myWidth = 0, myHeight = 0;
			if( typeof( window.innerWidth ) == 'number' ) {
				//Non-IE
				myWidth = window.innerWidth;
				myHeight = window.innerHeight;
			} 
			else if(document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
				//IE 6+ in 'standards compliant mode'
				myWidth = document.documentElement.clientWidth;
				myHeight = document.documentElement.clientHeight;
			} 
			else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
				//IE 4 compatible
				myWidth = document.body.clientWidth;
				myHeight = document.body.clientHeight;
			}
			
			// set to 1/2 the client width & height
			WaitingMessage.style.width = myWidth / 2;  
			WaitingMessage.style.height = myHeight / 2; 
				
			// positing in the middle of the screen
			WaitingMessage.style.left = (myWidth / 4) + 60;
			WaitingMessage.style.top = (myHeight / 4) - 30;
			
			// setting the timeout will force the browser to start animating the gif
			self.setTimeout('document.images["pbar"].src = "../Images/Waiting.gif"', 0);
					
			// display our message
			WaitingMessage.style.display = 'block';
	
			self.clearTimeout();
		}
	}
	catch (ex) {
		var WaitingMessage = document.getElementById('Waiting');
		WaitingMessage.style.display = 'none';
	}
	
	return true;
}