/*									    \\\ /// 
										( @ @ ) 
/*===============================....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 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(){
if (document.astm_form.name.value ==""){
alert("من فضلك اكتب اسمك");
document.astm_form.name.focus();
return false;
}

str = document.astm_form.email.value;
if (str.indexOf('@') == -1 || str.indexOf('.') == -1){
alert ('من فضلك اكتب البريد الالكتروني بشكل صحيح');
document.astm_form.email.focus();
return false;
}


if(isNaN(document.astm_form.phone.value)){
alert("من فضلك اكتب رقم الهاتف ارقام")
document.astm_form.phone.focus()
return false
}

if(document.astm_form.phone.value.length <= "5"){
alert("من فضلك ادخل رقم الهاتف الصحيح")
document.astm_form.phone.focus()
return false
}


if (document.astm_form.city.value ==""){
alert("من فضلك اكتب المدينة");
document.astm_form.city.focus();
return false;
}

if (document.astm_form.title.value ==""){
alert("من فضلك اختار نوع المشاركة");
document.astm_form.title.focus();
return false;
}

if (document.astm_form.msg.value ==""){
alert("من فضلك اكتب التفاصيل");
document.astm_form.msg.focus();
return false;
}

}