<!--

window.defaultStatus = "Welcome to CAFMSolutions.com"

//////////////////////////////////////////////////////
// DISABLE RIGHT CLICK
//----------------------------------------------------
/*
var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
*/
//----------------------------------------------------


//////////////////////////////////////////////////////
// LOG OUT CONFIRMATION.
//----------------------------------------------------

function LogOut(){
	if(confirm('Do you wish to log out?')){
		window.document.location = "data/asp/logout.asp";
	}
}


//////////////////////////////////////////////////////
// BREAK OUT OF FRAMES.
//----------------------------------------------------

if (window != top){
	top.location.href=location.href
}

//----------------------------------------------------


//////////////////////////////////////////////////////
// COOKIE SET GET AND DELETE FUNCTIONS.
//----------------------------------------------------

function SetCookie(name, value, expires, path, domain, secure) {
	var curCookie = name + "=" + value +
		((expires) ? "; expires=" + expires.toGMTString() : "") +
		((path) ? "; path=" + path : "") +
		((domain) ? "; domain=" + domain : "") +
		((secure) ? "; secure" : "");
	document.cookie = curCookie;
}
function GetCookie(name) {
	var dc = document.cookie;
	var prefix = name + "=";
	var begin = dc.indexOf("; " + prefix);
	if (begin == -1) {
		begin = dc.indexOf(prefix);
		if (begin != 0) return null;
	} else
		begin += 2;
	var end = document.cookie.indexOf(";", begin)
	if (end == -1) 
		end = dc.length;
	return unescape(dc.substring(begin + prefix.length, end));
}
function DeleteCookie(name, path, domain) {
	if (GetCookie(name)) {
		document.cookie = name + "=" +
		((path) ? "; path=" + path : "") +
		((domain) ? "; domain=" + domain : "") +
		"; expires=Thu, 01-Jan-70 00:00:01 GMT";
	}
}

//----------------------------------------------------

//////////////////////////////////////////////////////
// FUNCTION TO LOAD LOGIN WINDOW.
//----------------------------------------------------
function LogIn() {
	//window.open('https://w92.webminders.com/MSWIS/login.asp','mswislogin','width=280,height=230,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no');
	window.open('login.asp','mswislogin','width=280,height=230,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no');
}
//----------------------------------------------------

-->