//////////////////////////////////////////
//Dates of Marriage v 1.0
// ابو محمد الحذيف
//http://www.ac4p.com
//email:info@ac4p.com
//////////////////////////////////////////

function verify(){
     if(func.mname.value == ""){
     alert (" الرجـاء تعبئة حقل اسم المتزوج ");
     document.func.mname.focus();
     return false;
     }
     if(func.ztday.value == ""){
     alert (" الرجـاء تعبئة حقل اليوم ");
     document.func.ztday.focus();
     return false;
     }
     if(func.zlocation.value == ""){
     alert (" الرجـاء تعبئة حقل المكان ");
     document.func.zlocation.focus();
     return false;
    }
     if(func.zphone.value == ""){
     alert (" الرجـاء تعبئة حقل الجوال ");
     document.func.zphone.focus();
     return false;
    }

}

function adddate() {
var addz = window.open('add.php','','scrollbars=no,menubar=no,height=450,width=550,resizable=no,toolbar=no,location=no,status=no,scrolling=no');
}

function getcode(){
document.getElementById('codeiv').innerHTML = '<img align="middle" src="code.php" alt="انقل ماهو مكتوب على الصورة">';
}

function NewWindow(mypage,myname,w,h,scroll,pos){
var win=null;
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);
}
