
function pageLoad(){
	chM()
}

function chM(){
	var str="";
	var m="";
	var z="109-97-105-108-116-111-58";
	for(i=0;i<document.getElementsByTagName("a").length;i++){
		if((document.getElementsByTagName("a")[i].href) &&
			(document.getElementsByTagName("a")[i].href.search("ml=")>=0)){
			m=document.getElementsByTagName("a")[i].href.substr(document.getElementsByTagName("a")[i].href.search("ml=")+3);
			eval("str=String.fromCharCode("+z.split("-")+")");
			document.getElementsByTagName("a")[i].href=str;
			eval("str=String.fromCharCode("+m.split("-")+")");
			document.getElementsByTagName("a")[i].href+=str;
			if(trim(document.getElementsByTagName("a")[i].innerHTML).length==0)
				document.getElementsByTagName("a")[i].innerHTML=str;
		}
	}
}

function popUp(u, w, h, tit){ 
	if(!tit)
		tit='CrewManager .Net'
	var l=0
	var t=0
	try{
		l=(window.screen.availWidth-w)/2; 
		t=(window.screen.availHeight-h)/2;
	}catch(e){}
	page="<html><head><title>"+tit+"</title></head><body style=\"margin: 0; padding: 0;\">"+
		 "<img src=\""+u+"\" style=\"cursor:hand;display: block;\" onclick=\"window.close();\" alt=\"\" /></body></html>"; 
	p = window.open("","","width="+w+",height="+h+",left="+l+",top="+t+",resizable=no"); void(0); 
	p.document.open(); 
	p.document.write(page); 
	p.document.close(); 
	p.focus(); 
} 

function compDiagram(){ 
	var w = 1024
	var h = 800
	var	tit='CrewManager.Net'
	var l=0
	var t=0
	try{
		l=(window.screen.availWidth-w)/2; 
		t=(window.screen.availHeight-h)/2;
	}catch(e){}
	page="<html><head><title>"+tit+"</title></head><body style=\"margin: 0; padding: 0;\" bgcolor=\"#86aed7\">"+
		 "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\"1024\" height=\"800\" id=\"MarIT\" align=\"middle\" VIEWASTEXT> <param name=\"allowScriptAccess\" value=\"sameDomain\" /> <param name=\"movie\" value=\"/images/MarIT.swf\" /> <param name=\"quality\" value=\"high\" /> <param name=\"bgcolor\" value=\"#86aed7\" /> <embed src=\"/images/MarIT.swf\" quality=\"high\" bgcolor=\"#86aed7\" width=\"1024\" height=\"800\" name=\"MarIT\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" /> </object>"+
		 "</body></html>"; 
	p = window.open("","","width="+w+",height="+h+",left="+l+",top="+t+",scrollbars=yes, resizable=yes"); void(0); 
	p.document.open(); 
	p.document.write(page); 
	p.document.close(); 
	p.focus(); 
} 

function trim(str){
	return str.replace(/^\s*|\s*$/g,"");
}

function ShowOther(val)
{
	val = document.getElementById(val);
	if(val != null){
		if(val.checked)
			document.getElementById(val.id + "_txt").style.display = ''
		else
			document.getElementById(val.id + "_txt").style.display = 'none'
	}
}

function GetUserTime(val){
	val = document.getElementById(val);
	if(val != null){
		d = new Date();
		val.value = d;
	}
}

