// JavaScript Document

function print_mail_to_link(lhs,rhs,contact){
	if(contact == null){
		document.write("<a href=\"mailto:" + lhs + "@" + rhs +"\">" + lhs + " -at- " + rhs + "</a>");
	} else {
		document.write("<a href=\"mailto:" + lhs + "@" + rhs +"\">" + contact + "</a>");
	}
}
function confirmMSG(URL, MSG){
	if (confirm(MSG)) { document.location = URL; }
}
function confirmSubmit(){
	var agree=confirm("Are you sure you wish to continue?");
	if (agree)
		return true ;
	else
		return false ;
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function enableField(objname){
	document.getElementById(objname).disabled=false; }
function disableField(objname){
	document.getElementById(objname).disabled=true; }
function openVideo(file, width, height){
	window.open("<?= $write->url('/?p=popup-player', 'http', 'other') ?>&file="+file+"&width="+width+"&height="+height,"mediaplayer","menubar=1,resizable=1,width="+width+",height="+height); }
function openMap(title, lat, lng){
	window.open("<?= $write->url('/?p=popup-map-img', 'http', 'other') ?>&title="+title+"&lat="+lat+"&lng="+lng,"blank","toolbar=no,width=530,height=530"); }

