function mClk(id,dst) { 
	window.open(""+id,target=dst);
}

function mClk_F(dst,id) { 
	window.open(""+id,target=dst);
}

function mOvr(src,color){ 
	if (!src.contains(event.fromElement)) { 
		src.style.cursor = 'hand'; 
		src.bgColor = color; 
	}
}

function mOut(src,color)  { 
	if (!src.contains(event.toElement)) { 
		src.bgColor = color; 
	}
}

function mOvrFont(src,color){ 
	if (!src.contains(event.fromElement)) { 
		src.style.cursor = 'hand'; 
		if(color != null)
			src.style.color=color;
		else
			src.style.color='#ceca06';
	}
}

function mOutFont(src,color)  { 
	if (!src.contains(event.toElement)) { 
	if(color != null)
			src.style.color=color;
		else
			src.style.color='#183b7d';
	}
}

function fixModuleHeight(){
	document.getElementById("ModuleFrame").height= window.screen.height-240;
}

function openWin(url,target,height,width) { 
	window.open (url,target, "height=" + height + ", width=" + width + ",toolbar=no,scrollbars=yes,menubar=no,resizable=yes,location=no,status=no");
}

function openNoResizableWin(url,target,height,width) { 
	window.open (url,target, "height=" + height + ", width=" + width + ",toolbar=no,scrollbars=yes,menubar=no,resizable=no,location=no,status=no");
}

function open_Modaldialog(url,source,width,height){
	var arg = window.showModalDialog(url, source, "dialogHeight:" + height + "px;dialogWidth:" + width +
									  "px; edge:raised; center:yes; help: no; resizable: no; status: no;");
}
function open_dialog(url,source,width,height){
	var arg = window.showModelessDialog(url, source, "dialogHeight:" + height + "px;dialogWidth:" + width +
									  "px; edge:raised; center:yes; help: no; resizable: no; status: no;");
}

function open_forum_dialog(type_id,reply_id,source){
	openNoResizableWin("/module/forum/reply_dialog.jsp?type_id="+ type_id +"&reply_id="+reply_id,"_blank",500,740);
}

function open_forum_add_dialog(type_name,about_title,source){
	open_dialog("/module/forum/topic_edit.jsp?type_name=" + type_name + "&about_title="  + about_title,source,800,600);
}

function maxSize(dst){
	document.getElementById(dst).height= document.getElementById(dst).Document.body.scrollHeight;
}
function keysubmit(e){
	if (navigator.appName == "Netscape"){
		if (e.which == 13){
			return true;
		}
	}else	{
		if (event.keyCode == 13){
			return true;
		}
	}
}



