function submitvote(mywhich){
	if (mywhich =='') {
	alert ('الرجاء تحديد القيمة المراد التصويت لها');
	return false;
	}else{
	xxx = 'document.f' + mywhich + '.submit()';
	eval (xxx);
	}
}

function show_article(article_id){
page= './dairy.php?arid=' + article_id; 
var win= window.open(page, 'poppage', 'toolbars=0, scrollbars=1, location=0, statusbars=1, menubars=0, resizable=0, width=600, height=600, left = 1, top = 1');	
}

function conf2(what){
	 if (what=="categories"){
message = "إن عملية الحذف هذه سوف تلغي نهائياً ظهور هذا التصنيف. \n\n هل أنت متأكد من ذلك";
	}
	 if (what=="groups"){
message = "إن عملية الحذف هذه سوف تلغي نهائياً هذه المجموعة. \n\n هل أنت متأكد من ذلك";
	}
	 if (what=="engine"){
message = "إن عملية الحذف هذه سوف تلغي نهائياً بيانات هذا الدليل. \n\n هل أنت متأكد من ذلك";
	}
	 if (what=="cat"){
message = "إن عملية الحذف هذه سوف تلغي نهائياً هذا القسم والاقسام الفرعية ضمنه \nوما يليها  في النظام.\n\n هل أنت متأكد من ذلك";
	}
	 if (what=="subcat"){
message = "إن عملية الحذف هذه سوف تلغي نهائياً هذا القسم  \nبالاضافة الى مايليها في النظام.\n\n هل أنت متأكد من ذلك";
	}
 if (what=="article"){
message = "إن عملية الحذف هذه سوف تلغي نهائياً هذا الموضوع  \nبالاضافة الى البطاقات في النظام.\n\n هل أنت متأكد من ذلك";
	}
var con= confirm (message);
	if (con){
	return true;
	}else {
	return false;
	}
}

function show(){
where= "http://www.almedan.net/mailing1/advisor.php?email=" + document.mail_form.email.value + "&name="  + document.mail_form.name.value ;
props=window.open(where, 'poppage', 'toolbars=0, scrollbars=0, location=0, statusbars=1, menubars=1, resizable=1, width=450, height=200, left = 125, top = 20');
return false;
}
