
defaultStatus = "iModel.com Websites"

	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;}
	
	document.oncontextmenu=new Function("return false")

function setStatus(msg) { window.status = msg; return true } 

function openSaysMe(url, width, height) {
		var winl = (screen.width - width) / 2;
		var wint = (screen.height - height) / 3;
        var Win = window.open(url,"openSaysMe",'width=' + width + ',height=' + height + ',top='+wint+',left='+winl+',resizable=1,scrollbars=yes,menubar=no,status=no' );
}


function go( url, opt, w, h, s, r ){
	if( !url )return false;
	if( opt == 1 ){
		if( !w )w = 700;
		if( !h )h = 400;
		if( !s )s = 1; else s = 0;
		if( !r )r = 1; else r = 0;
		l = ( screen.width - w )/2;
		t = ( screen.height - h )/2;
		
		window.open( url, "_blank", "toolbar=0,scrollbars="+s+",resizable="+r+",left="+l+",top="+t+",width="+w+",height="+h );
	}
	else if( opt == 2 ) {
		window.open( url, "_blank" );
	}
	else if( opt == 3 ){
		var wd = window.open( url, '_blank', 'fullscreen=1, scrollbars=1, toolbar=0, resizable=1' );
	}
	else {
		window.location.href = url;
	}
}

	
function FrameBreakout() { 
	if (top.location != location) {
  		top.location.href = document.location.href ;
	}
	}


function selectAll(theField) {
	var tempval=eval("document."+theField)
	tempval.focus()
	tempval.select()
}


function CheckForNull( ) 
{ 
    if (document.getMember.mid.value == "") 
        alert ("Please Enter Member Number") 
    else 
        document.getMember.submit() 
} 
