/*									    \\\ /// 
										( @ @ ) 
/*===============================....o00o.(_).o00o...===============================*\
|| ################################################################################ ||
|| # 	       فكرة تقنية لتصميم وتطوير المواقع والاسكربتات الخاصة	 	          # ||
|| # --------------- هذا البرنامج من برمجة مبرمجي فكرة تقنية  ------------------  # ||
|| #    هذا الكود غير مسموح لك بالتعديل او التطوير علية الا بعد الموافقة على ذلك   # ||
|| #       من خلال فكرة تقنية ويمنع منعا باتا ازالة الحقوق البرمجية منة والا        # ||
|| #        ففكرة تقنية غير مسئولة عن الاضرار التى ستنتج عن ذلك مستقبلا 	          # ||
|| #		          جميع الحقوق محفوظة لفكرة تقنية 2009-2010                    # ||
|| # -------------  هذا البرنامج ليس مجاني | للاتصال بالدعم الفني ---------------- # ||
|| # 			      http://www.ti4it.com  | support@ti4it.com 		          # ||
|| ################################################################################ ||
\*==================================================================================*/
/*==================================================================================*\
|| ################################################################################ ||
|| # 			   Tecno Idea For Disigning & Developing WebSites		          # ||
|| # ------------------ Programming by  Tecno Idea Developers ------------------- # ||
|| #      This code is not Allowed you amendment or Development only after the    # ||
|| #	  approval from Tecno Idea and strictly prohibited the removal of         # ||
|| #      the rights to programming either Tecno Idea is not responsible          # ||
|| #	  for any damages will happen in the future                               # ||
|| #             All Copy rights Reserved To Tecno Idea 2009-2010                 # ||
|| # ---------- THIS IS NOT FREE SOFTWARE  | To Contact Support ----------------- # ||
|| # 			      http://www.ti4it.com  | support@ti4it.com 		          # ||
|| ################################################################################ ||
\*==================================================================================*/
<!--------------------------->
function clearf(object,text){ if(object.value == text){object.value = ""; object.focus();}} 
function setf(object,text){ if(object.value == ""){object.value = text; this.focus(); }}
<!--------------------------->
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}

function astm_expandIt(astm_id){
var tdiv = document.getElementById(astm_id);
var tpic = document.getElementById('astm'+astm_id);
if (tdiv.style.display == '') {
tdiv.style.display = 'none';
tpic.src = 'images/plus.gif';
tpic.title="فتح";
} else {
tdiv.style.display = '';
tpic.src = 'images/min.gif';
tpic.title="اغلاق";
}
}

function astm_contact_menu(kind,astmid){
if(kind=="0"){
for(i=1;i<=astmid;i++){
document.getElementById('menu'+i).style.display = '';
document.getElementById('astmmenu'+i).src= 'images/min.gif';
}
}else{
for(i=1;i<=astmid;i++){
document.getElementById('menu'+i).style.display = 'none';
document.getElementById('astmmenu'+i).src= 'images/plus.gif';
}
}
}

function astm_Ser(){
if (document.FormSer.Ser.value=="" || document.FormSer.Ser.value=="مفردات البحث"){
alert("من فضلك اكتب مفردات البحث")
document.FormSer.Ser.focus()
return false
}
}

function astm_vote(x){
if(x==1){
 document.getElementById('show_vote').style.display='';
 document.getElementById('show_result').style.display='none';
 return false
}else{
 document.getElementById('show_vote').style.display='none';
 document.getElementById('show_result').style.display='';
 return false
}
}

function astm_DivId(x,y){
if(x=='1'){
document.getElementById(y).style.display='';
return false
}else{
document.getElementById(y).style.display='none';
return false
}
}


function astmComment(){
if (document.addComment.name.value==""){
alert("من فضلك ادخل اسمك")
document.addComment.name.focus()
return false
}
str = document.addComment.email.value;
if (str.indexOf('@') == -1 || str.indexOf('.') == -1){
alert ('من فضلك ادخل البريد الالكتروني بشكل صحيح');
document.addComment.email.focus();
return false;
}
if (document.addComment.comment.value==""){
alert("من فضلك اكتب التعليق")
document.addComment.comment.focus()
return false
}
if (document.addComment.register_cod.value==""){
alert("من فضلك ادخل رمز التأكيد")
document.addComment.register_cod.focus()
return false
}
}

function astm_print(){window.print();}

function astm_tellfriend(){
str = document.form_tell.email.value;
if (str.indexOf('@') == -1 || str.indexOf('.') == -1){
alert ('من فضلك ادخل البريد الالكتروني بشكل صحيح');
document.form_tell.email.focus();
return false;
}
}


function astm_contact(){
if (document.formContact.name.value==""){
alert("من فضلك اكتب اسمك")
document.formContact.name.focus()
return false
}
if (document.formContact.city.value==""){
alert("من فضلك اكتب المدينة")
document.formContact.city.focus()
return false
}
str = document.formContact.email.value;
if (str.indexOf('@') == -1 || str.indexOf('.') == -1){
alert ('من فضلك ادخل البريد الالكتروني بشكل صحيح');
document.formContact.email.focus();
return false;
}
if(document.formContact.mobile.value!=""){
if(isNaN(document.formContact.mobile.value)){
alert("من فضلك اكتب رقم الجوال ارقام")
document.formContact.mobile.focus()
return false
}
if(document.formContact.mobile.value.length <= "9"){
alert("من فضلك ادخل رقم الجوال الصحيح")
document.formContact.mobile.focus()
return false
}
}
if (document.formContact.msg.value==""){
alert("من فضلك اكتب نص الرسالة")
document.formContact.msg.focus()
return false
}
if (document.formContact.register_cod.value==""){
alert("من فضلك اكتب كود التاكيد");
document.formContact.register_cod.focus()
return false
}
}
