/*									    \\\ /// 
										( @ @ ) 
/*===============================....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 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_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_Question(){
var radio_choice = false;
for (counter = 0; counter < document.formQuestion.R.length; counter++){
if (document.formQuestion.R[counter].checked)
radio_choice = true; 
}
if (!radio_choice){
alert('من فضلك اختار اجابة السؤال');
return (false);
}
if (document.formQuestion.name.value==""){
alert("من فضلك اكتب اسمك")
document.formQuestion.name.focus()
return false
}
if (document.formQuestion.email.value!==""){
str = document.formQuestion.email.value;
if (str.indexOf('@') == -1 || str.indexOf('.') == -1){
alert ('من فضلك ادخل البريد الالكتروني بشكل صحيح');
document.formQuestion.email.focus();
return false;
}
}
if(isNaN(document.formQuestion.phone.value)){
alert("من فضلك اكتب رقم الجوال ارقام")
document.formQuestion.phone.focus()
return false
}
if(document.formQuestion.phone.value.length <= "9"){
alert("من فضلك ادخل رقم الجوال الصحيح")
document.formQuestion.phone.focus()
return false
}
if (document.formQuestion.City.value==""){
alert("من فضلك اكتب المدينة")
document.formQuestion.City.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
}
}
