function photo_open (link, width, height)  {
      var photoWindow = window.open(link,"photo",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width='+width+',height='+height);
}
function doit(act,verify) {
	if (verify) { 
		verify();
	}
	document.dataform.action = act;
	document.dataform.submit() ;
	return false; 
}
function verify() {		
	ok = confirm("Are you sure?");
	if (ok != true) { 
		return false;
	}
	
}
function pwdmatch(act) { 
   var pass1 = document.dataform.pass.value;
   var pass2 = document.dataform.pass2.value;
   if (pass1 == pass2) {
	 doit(act);
	 return;
   }
   alert("Password mis-match... \nCheck your password(s) and try again...");
   return false;
}
function OpenSwitch(mobj,obj){
	if(document.getElementById){
		var el = document.getElementById(obj);
		var ar = document.getElementById(mobj).getElementsByTagName("DIV");
		if(el.style.display == "none"){
			for (var i=0; i<ar.length; i++){
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}else{
			el.style.display = "none";
		}
	}
	
}

