/*									    \\\ /// 
										( @ @ ) 
/*===============================....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);
}

var Symb="select::::SELECT::::*::::=::::-::::+::::from::::table::::where::::WHERE::::or::::OR::::Or::::or::::AND::::and::::order::::by::::ORDER::::BY::::update::::UPDATE::::delete::::DELETE::::union::::UNION::::~::::(::::)::::[::::]::::{::::}::::limit::::LIMIT::::set::::SET::::salt::::substring::::concat::::,::::schema::::column::::information::::infmation::::sql::::SQL::::Query::::query::::load_file::::etc::::passwd::::table::::like::::LIKE::::%::::version::::/::::'::::mysql::::MYSQL::::create::::CREATE::::connect::::drop::::DROP::::ping::::PING::::insert::::INSERT::::fetch::::FETCH::::array::::ARRAY::::exec::::char::::CHAR::::print::::.exe::::system::::file_get_contents::::fopen::::fputs::::play|con::::offset::::shell".split("::::");

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_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_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_comment(){
if (document.formcomment.name.value==""){
alert("من فضلك اكتب اسمك")
document.formcomment.name.focus()
return false
}

for (var i=0; i < Symb.length; i++){
if (document.formcomment.name.value.indexOf(Symb[i]) !== -1){
alert (" ["+Symb[i]+"] غير مسموح بكتابة هذا الرمز");
document.formcomment.name.focus();
return (false); 
}
}

str = document.formcomment.email.value;
if (str.indexOf('@') == -1 || str.indexOf('.') == -1){
alert ('من فضلك ادخل البريد الالكتروني بشكل صحيح');
document.formcomment.email.focus();
return false;
}

for (var i=0; i < Symb.length; i++){
if (document.formcomment.email.value.indexOf(Symb[i]) !== -1){
alert (" ["+Symb[i]+"] غير مسموح بكتابة هذا الرمز");
document.formcomment.email.focus();
return (false); 
}
}


if (document.formcomment.comment.value==""){
alert("من فضلك اكتب التعليق");
document.formcomment.comment.focus()
return false
}

for (var i=0; i < Symb.length; i++){
if (document.formcomment.comment.value.indexOf(Symb[i]) !== -1){
alert (" ["+Symb[i]+"] غير مسموح بكتابة هذا الرمز");
document.formcomment.comment.focus();
return (false); 
}
}

if (document.formcomment.register_cod.value==""){
alert("من فضلك اكتب كود التاكيد");
document.formcomment.register_cod.focus()
return false
}

}



function astm_show_comment(x){
if(x==1){
 document.getElementById('show_com').style.display='block';
 return false
}else{
 document.getElementById('show_com').style.display='none';
 return false
}
}

function astm_contact(){
if (document.formContact.name.value==""){
alert("من فضلك اكتب اسمك")
document.formContact.name.focus()
return false
}

for (var i=0; i < Symb.length; i++){
if (document.formContact.name.value.indexOf(Symb[i]) !== -1){
alert (" ["+Symb[i]+"] غير مسموح بكتابة هذا الرمز");
document.formContact.name.focus();
return (false); 
}
}


if (document.formContact.city.value==""){
alert("من فضلك اكتب المدينة")
document.formContact.city.focus()
return false
}

for (var i=0; i < Symb.length; i++){
if (document.formContact.city.value.indexOf(Symb[i]) !== -1){
alert (" ["+Symb[i]+"] غير مسموح بكتابة هذا الرمز");
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;
}

for (var i=0; i < Symb.length; i++){
if (document.formContact.email.value.indexOf(Symb[i]) !== -1){
alert (" ["+Symb[i]+"] غير مسموح بكتابة هذا الرمز");
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
}

for (var i=0; i < Symb.length; i++){
if (document.formContact.mobile.value.indexOf(Symb[i]) !== -1){
alert (" ["+Symb[i]+"] غير مسموح بكتابة هذا الرمز");
document.formContact.mobile.focus();
return (false); 
}
}

}

if (document.formContact.msg.value==""){
alert("من فضلك اكتب نص الرسالة")
document.formContact.msg.focus()
return false
}

for (var i=0; i < Symb.length; i++){
if (document.formContact.msg.value.indexOf(Symb[i]) !== -1){
alert (" ["+Symb[i]+"] غير مسموح بكتابة هذا الرمز");
document.formContact.msg.focus();
return (false); 
}
}

if (document.formContact.register_cod.value==""){
alert("من فضلك اكتب كود التاكيد");
document.formContact.register_cod.focus()
return false
}

}
