// Constant Variables
var CopyProtectMessage = "The contents of this site are the property of IKGA Canada.\n\nUnauthorised use is prohibited.";

// ----------------------------------------------
// Page Load Scripts
if (document.layers) 
{
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown = DisableNetscapeRightClick;
} 
else 
{
	document.onmouseup = DisableNetscapeRightClick;
	document.oncontextmenu = DisableIeRightClick;
}
document.oncontextmenu = new Function("alert(CopyProtectMessage);return false")


// ----------------------------------------------
//Functions
function DisableIeRightClick() 
{
	if (document.all) 
	{
		alert(CopyProtectMessage);
		return false; 
	}
}

function DisableNetscapeRightClick(e) 
{
	if (document.layers||(document.getElementById&&!document.all)) 
	{
		if (e.which==2||e.which==3) 
		{
			alert(CopyProtectMessage);
			return false;
		}
	}
}

function InsertInfoLink(href, message)
{
	//document.write( 
	//	"<span class=InfoLink onclick=\"javascript:ShowInformationPage('" + href + "')\">" + message + "</span>");
	document.write( 
		"<a href=\"javascript:ShowInformationPage('" + href + "')\">" + message + "</a>");
}
function ShowInformationPage(href)
{
	var dialogOptions
	//dialogOptions = "dialogHeight:450px ; dialogWidth:550px; center:yes; help:no; resizable:yes; scroll:yes; status:no; unadorned:yes;";
	//window.showModalDialog(href, "", dialogOptions)
	dialogOptions = "toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=no, width=500, height=450";
	window.open(href,"my_new_window",dialogOptions)
}

