function SelImage(frmName, fabobjdirectory, srcCtrl, srcImg)
                 {
				 	w = open("/admin/gallery/selimage.asp?srcFrm=opener.document."+frmName +"&srcCtrl="+srcCtrl+"&srcImg="+srcImg+"&ObjFolder="+fabobjdirectory,"winLov","Scrollbars=1,resizable=1,Status=1,width=600,height=500");
                    if (w.opener == null)
                       w.opener = self;
                    w.focus();
                 }


function ConfirmDel(){
	if(confirm("Confermi la cancellazione")){
		return true;}
	return false;
}

function PageRefresh() { 
	location.reload();
	return true;
}

function ParentRefresh() {
	if (window.opener) {
   	window.opener.location.reload();
   }
}

function dosubmit(formname)    { popup(formname,'',640,500); return true; }

function popup(name,url,width,height) {
	window.open(url,name,'width='+width+',height='+height+',scrollbars=1,resizable=1,status=1');
}

function ChkEmpty(value){ return ( value == '' ); }

function ChkEmail(value) {

	var re = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;
	re.input = value;
   OK = re.exec(value);
   if ( !OK ){ return false; }else{ return true; }

}
