document.oncontextmenu = contextMenu;

function contextMenu() { return false; }
function getCookie(Name) {
	var search = Name + "="
	if (document.cookie.length > 0) { // if there are any cookies
		offset = document.cookie.indexOf(search) 
		if (offset != -1) { // if cookie exists 
			offset += search.length 
			// set index of beginning of value
			end = document.cookie.indexOf(";", offset) 
			// set index of end of cookie value
			if (end == -1) 
				end = document.cookie.length
			return unescape(document.cookie.substring(offset, end))
		} 
	}
}
function chkInt( y ) {
  
  if( y.length == 0 || y*1 != y ) { 
  	alert("Please input a integer!"); 
  	return false;
  } else
  return true;
}
function sP( x, n ) {
  if( cL ) cL.style.background='white';
  cL = x; cL.style.background='ffcc88';
  cellValue = n;
}
function terms()
{
	msgWindow=window.open("../insead/html/terms.html","displayWindow","toolbar=no,width=410,height=340,directories=no,status=no,scrollbars=yes,resize=no,menubar=no")
}
function copyright()
{
	msgWindow=window.open("../insead/html/copyright.html","displayWindow","toolbar=no,width=410,height=240,directories=no,status=no,scrollbars=yes,resize=no,menubar=no")
}
function openAd()
{
	msgWindow=window.open("../insead/images/Studio Portrait Package.jpg","displayWindow","height=340 width=600 toolbar=no,directories=no,status=no,scrollbars=no,resize=no,menubar=no")
}
NS = document.layers? 1:0;
        



