﻿function  ShowPopUp(page, code, width, height){window.open(''+page+'','PopUp'+code+'','status=no,scrollbars=no,toolbar=no,menubar=no,location=no ,width='+width+',height='+height+'');}

function OnMenu(tdMenu)
{
	tdMenu.className="my_menu_on";
}
function OutMenu(tdMenu)
{
	tdMenu.className="my_menu_out";
}


alpha1 = /^([0-9])+$/;
emailRE = /^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/;

function parsiphpform1()
{
	if (document.Form.advertisement_fileurl.value == "" || document.Form.advertisement_fileurl.value == "http://www." || document.Form.advertisement_fileurl.value == "http://") {
	alert(". لطفا فايل آدرس تبليغ خود را وارد نماييد");
	document.Form.advertisement_fileurl.focus();
	return false;
	}

	if (!alpha1.test(document.Form.advertisement_height.value)) {
	alert(". لطفا ارتفاع تبليغ خود را انتخاب نماييد");
	document.Form.advertisement_height.focus();
	return false;
	}

	if (!alpha1.test(document.Form.advertisement_width.value)) {
	alert(". لطفا عرض تبليغ خود را انتخاب نماييد");
	document.Form.advertisement_width.focus();
	return false;
	}

	if (document.Form.advertisement_start.value == "") {
	alert(". لطفا تاريخ ثبت تبليغ خود را وارد نماييد");
	document.Form.advertisement_start.focus();
	return false;
	}

	if (document.Form.secCode.value == "") {
	alert(". لطفا نوشته داخل عكس را در مكان كد امنيتي وارد نماييد");
	document.Form.secCode.focus();
	return false;
	}

	document.Form.ok.disabled=true;

	if(confirm("ظاهراً اطلاعات صحيح وارد شده اند . آيا مايل به ثبت اطلاعات هستيد ؟")){document.Form.send.click();} else {document.Form.ok.disabled=false;}
}

function parsiphpform1a()
{
	if (document.Form.advertisement_fileurl.value == "" || document.Form.advertisement_fileurl.value == "http://www." || document.Form.advertisement_fileurl.value == "http://") {
	alert(". لطفا فايل آدرس تبليغ خود را وارد نماييد");
	document.Form.advertisement_fileurl.focus();
	return false;
	}

	if (!alpha1.test(document.Form.advertisement_height.value)) {
	alert(". لطفا ارتفاع تبليغ خود را انتخاب نماييد");
	document.Form.advertisement_height.focus();
	return false;
	}

	if (!alpha1.test(document.Form.advertisement_width.value)) {
	alert(". لطفا عرض تبليغ خود را انتخاب نماييد");
	document.Form.advertisement_width.focus();
	return false;
	}

	document.Form.ok.disabled=true;

	if(confirm("ظاهراً اطلاعات صحيح وارد شده اند . آيا مايل به ثبت اطلاعات هستيد ؟")){document.Form.send.click();} else {document.Form.ok.disabled=false;}
}

function parsiphpform2()
{
	if (document.Form.category_name.value == "") {
	alert(". لطفا نام موضوع خود را وارد نماييد");
	document.Form.category_name.focus();
	return false;
	}

	if (document.Form.secCode.value == "") {
	alert(". لطفا نوشته داخل عكس را در مكان كد امنيتي وارد نماييد");
	document.Form.secCode.focus();
	return false;
	}

	document.Form.ok.disabled=true;

	if(confirm("ظاهراً اطلاعات صحيح وارد شده اند . آيا مايل به ثبت اطلاعات هستيد ؟")){document.Form.send.click();} else {document.Form.ok.disabled=false;}
}

function parsiphpform3()
{
	if (document.Form.downloadcategory_id.value == "0") {
	alert(". لطفا موضوع قرار دادن دانلود را انتخاب نماييد");
	document.Form.downloadcategory_id.focus();
	return false;
	}

	if (document.Form.download_title.value == "") {
	alert(". لطفا عنوان دانلود خود را وارد نماييد");
	document.Form.download_title.focus();
	return false;
	}

	if (document.Form.download_url.value == "") {
	alert(". لطفا لينك دانلود خود را وارد نماييد");
	document.Form.download_url.focus();
	return false;
	}

	if (document.Form.secCode.value == "") {
	alert(". لطفا نوشته داخل عكس را در مكان كد امنيتي وارد نماييد");
	document.Form.secCode.focus();
	return false;
	}

	document.Form.ok.disabled=true;

	if(confirm("ظاهراً اطلاعات صحيح وارد شده اند . آيا مايل به ثبت اطلاعات هستيد ؟")){document.Form.send.click();} else {document.Form.ok.disabled=false;}
}

function parsiphpform4()
{
	if (document.Form.gallerycategory_id.value == "0") {
	alert(". لطفا موضوع قرار دادن عكس را انتخاب نماييد");
	document.Form.gallerycategory_id.focus();
	return false;
	}

	if (document.Form.gallery_title.value == "") {
	alert(". لطفا عنوان عكس خود را وارد نماييد");
	document.Form.gallery_title.focus();
	return false;
	}

	if (document.Form.gallery_url.value == "") {
	alert(". لطفا لينك عكس خود را وارد نماييد");
	document.Form.gallery_url.focus();
	return false;
	}

	if (document.Form.secCode.value == "") {
	alert(". لطفا نوشته داخل عكس را در مكان كد امنيتي وارد نماييد");
	document.Form.secCode.focus();
	return false;
	}

	document.Form.ok.disabled=true;

	if(confirm("ظاهراً اطلاعات صحيح وارد شده اند . آيا مايل به ثبت اطلاعات هستيد ؟")){document.Form.send.click();} else {document.Form.ok.disabled=false;}
}


function parsiphpform5()
{
	if (document.Form.ipban_ip.value == "") {
	alert(". لطفا آي پي سيستم مورد نظر را وارد نماييد");
	document.Form.ipban_ip.focus();
	return false;
	}

	if (document.Form.secCode.value == "") {
	alert(". لطفا نوشته داخل عكس را در مكان كد امنيتي وارد نماييد");
	document.Form.secCode.focus();
	return false;
	}

	document.Form.ok.disabled=true;

	if(confirm("ظاهراً اطلاعات صحيح وارد شده اند . آيا مايل به ثبت اطلاعات هستيد ؟")){document.Form.send.click();} else {document.Form.ok.disabled=false;}
}


function parsiphpform6()
{
	if (document.Form.link_name.value == "") {
	alert(". لطفا عنوان لينك خود را وارد نماييد");
	document.Form.link_name.focus();
	return false;
	}

	if (document.Form.link_url.value == "" || document.Form.link_url.value == "http://") {
	alert(". لطفا آدرس لينك خود را وارد نماييد");
	document.Form.link_url.focus();
	return false;
	}

	if (document.Form.secCode.value == "") {
	alert(". لطفا نوشته داخل عكس را در مكان كد امنيتي وارد نماييد");
	document.Form.secCode.focus();
	return false;
	}

	document.Form.ok.disabled=true;

	if(confirm("ظاهراً اطلاعات صحيح وارد شده اند . آيا مايل به ثبت اطلاعات هستيد ؟")){document.Form.send.click();} else {document.Form.ok.disabled=false;}
}


function parsiphpform7()
{
	if (document.Form.logo_url.value == "" || document.Form.logo_url.value == "http://") {
	alert(". لطفا آدرس لوگوي خود را وارد نماييد");
	document.Form.logo_url.focus();
	return false;
	}

	if (!alpha1.test(document.Form.logo_h.value)) {
	alert(". لطفا ارتفاع لوگوي خود را وارد نماييد");
	document.Form.logo_h.focus();
	return false;
	}

	if (!alpha1.test(document.Form.logo_w.value)) {
	alert(". لطفا عرض لوگوي خود را وارد نماييد");
	document.Form.logo_w.focus();
	return false;
	}

	if (document.Form.secCode.value == "") {
	alert(". لطفا نوشته داخل عكس را در مكان كد امنيتي وارد نماييد");
	document.Form.secCode.focus();
	return false;
	}

	document.Form.ok.disabled=true;

	if(confirm("ظاهراً اطلاعات صحيح وارد شده اند . آيا مايل به ثبت اطلاعات هستيد ؟")){document.Form.send.click();} else {document.Form.ok.disabled=false;}
}


function parsiphpform8()
{
	if (document.Form.poll_text.value == "") {
	alert(". لطفا سوال نظرسنجي خود را وارد نماييد");
	document.Form.poll_text.focus();
	return false;
	}

	if (document.Form.poll_option1.value == "") {
	alert("گزينه اول ؟");
	document.Form.poll_option1.focus();
	return false;
	}

	if (document.Form.poll_option2.value == "") {
	alert("گزينه دوم ؟");
	document.Form.poll_option2.focus();
	return false;
	}

	if (document.Form.poll_option3.value == "") {
	alert("گزينه سوم ؟");
	document.Form.poll_option3.focus();
	return false;
	}

	if (document.Form.poll_option4.value == "") {
	alert("گزينه چهارم ؟");
	document.Form.poll_option4.focus();
	return false;
	}

	if (document.Form.poll_message.value == "") {
	alert(". لطفا پيام تشكر خود را در قبال اظهار نظر بازديد كنندگان وارد نماييد");
	document.Form.poll_message.focus();
	return false;
	}

	if (document.Form.secCode.value == "") {
	alert(". لطفا نوشته داخل عكس را در مكان كد امنيتي وارد نماييد");
	document.Form.secCode.focus();
	return false;
	}

	document.Form.ok.disabled=true;

	if(confirm("ظاهراً اطلاعات صحيح وارد شده اند . آيا مايل به ثبت اطلاعات هستيد ؟")){document.Form.send.click();} else {document.Form.ok.disabled=false;}
}


function parsiphpform8b()
{
	if (document.Form.poll_text.value == "") {
	alert(". لطفا سوال نظرسنجي خود را وارد نماييد");
	document.Form.poll_text.focus();
	return false;
	}

	if (document.Form.poll_option1.value == "") {
	alert("گزينه اول ؟");
	document.Form.poll_option1.focus();
	return false;
	}

	if (document.Form.poll_option2.value == "") {
	alert("گزينه دوم ؟");
	document.Form.poll_option2.focus();
	return false;
	}

	if (document.Form.poll_option3.value == "") {
	alert("گزينه سوم ؟");
	document.Form.poll_option3.focus();
	return false;
	}

	if (document.Form.poll_option4.value == "") {
	alert("گزينه چهارم ؟");
	document.Form.poll_option4.focus();
	return false;
	}

	if (document.Form.poll_message.value == "") {
	alert(". لطفا پيام تشكر خود را در قبال اظهار نظر بازديد كنندگان وارد نماييد");
	document.Form.poll_message.focus();
	return false;
	}

	document.Form.ok.disabled=true;

	if(confirm("ظاهراً اطلاعات صحيح وارد شده اند . آيا مايل به ثبت اطلاعات هستيد ؟")){document.Form.send.click();} else {document.Form.ok.disabled=false;}
}


function parsiphpform9()
{
	if (document.Form.theme_name.value == "") {
	alert(". لطفا نام قالب را وارد نماييد");
	document.Form.theme_name.focus();
	return false;
	}

	if (document.Form.theme_directury.value == "") {
	alert(". لطفا نام پوشه قالب را وارد نماييد");
	document.Form.theme_directury.focus();
	return false;
	}

	if (document.Form.secCode.value == "") {
	alert(". لطفا نوشته داخل عكس را در مكان كد امنيتي وارد نماييد");
	document.Form.secCode.focus();
	return false;
	}

	document.Form.ok.disabled=true;

	if(confirm("ظاهراً اطلاعات صحيح وارد شده اند . آيا مايل به ثبت اطلاعات هستيد ؟")){document.Form.send.click();} else {document.Form.ok.disabled=false;}
}


function parsiphpform10()
{
	if (document.Form.user_username.value == "") {
	alert(". لطفا شناسه کاربری كاربر را وارد نماييد");
	document.Form.user_username.focus();
	return false;
	}

	if (document.Form.user_password.value == "") {
	alert(". لطفا رمز عبور كاربر را وارد نماييد");
	document.Form.user_password.focus();
	return false;
	}

	if (document.Form.pws_ret.value != document.Form.user_password.value) {
	alert(". تکرار رمز عبور صحيح نمي باشد");
	document.Form.pws_ret.focus();
	return false;
	}

	if (document.Form.user_alias.value == "") {
	alert(". لطفا نام مستعار كاربر را وارد نماييد");
	document.Form.user_alias.focus();
	return false;
	}

	if (!emailRE.test(document.Form.user_email.value)) {
	alert(". آدرس پست الکترونيک صحيح و معتبر نمي باشد");
	document.Form.user_email.focus();
	return false;
	}

	if (document.Form.secCode.value == "") {
	alert(". لطفا نوشته داخل عكس را در مكان كد امنيتي وارد نماييد");
	document.Form.secCode.focus();
	return false;
	}

	document.Form.ok.disabled=true;

	if(confirm("ظاهراً اطلاعات صحيح وارد شده اند . آيا مايل به ثبت اطلاعات هستيد ؟")){document.Form.send.click();} else {document.Form.ok.disabled=false;}
}


function parsiphpform11()
{
	if (document.Form.user_password.value == "") {
	alert(". لطفا رمز عبور جديد را وارد نماييد");
	document.Form.user_password.focus();
	return false;
	}

	if (document.Form.pws_ret.value != document.Form.user_password.value) {
	alert(". تکرار رمز عبور جديد صحيح نمي باشد");
	document.Form.pws_ret.focus();
	return false;
	}

	if (document.Form.secCode.value == "") {
	alert(". لطفا نوشته داخل عكس را در مكان كد امنيتي وارد نماييد");
	document.Form.secCode.focus();
	return false;
	}

	document.Form.ok.disabled=true;

	if(confirm("ظاهراً اطلاعات صحيح وارد شده اند . آيا مايل به تغيير كلمه عبور هستيد ؟")){document.Form.send.click();} else {document.Form.ok.disabled=false;}
}


function parsiphpform12()
{
	if (document.Form.user_username.value == "") {
	alert(". لطفا شناسه کاربری كاربر را وارد نماييد");
	document.Form.user_username.focus();
	return false;
	}

	if (document.Form.user_alias.value == "") {
	alert(". لطفا نام مستعار كاربر را وارد نماييد");
	document.Form.user_alias.focus();
	return false;
	}

	if (!emailRE.test(document.Form.user_email.value)) {
	alert(". آدرس پست الکترونيک صحيح و معتبر نمي باشد");
	document.Form.user_email.focus();
	return false;
	}

	if (document.Form.secCode.value == "") {
	alert(". لطفا نوشته داخل عكس را در مكان كد امنيتي وارد نماييد");
	document.Form.secCode.focus();
	return false;
	}

	document.Form.ok.disabled=true;

	if(confirm("ظاهراً اطلاعات صحيح وارد شده اند . آيا مايل به ثبت اطلاعات هستيد ؟")){document.Form.send.click();} else {document.Form.ok.disabled=false;}
}


function parsiphpform13()
{
	if (document.Form.subject.value == "") {
	alert(". لطفا عنواني براي پيام خود وارد نماييد");
	document.Form.subject.focus();
	return false;
	}

	if (document.Form.secCode.value == "") {
	alert(". لطفا نوشته داخل عكس را در مكان كد امنيتي وارد نماييد");
	document.Form.secCode.focus();
	return false;
	}

	document.Form.ok.disabled=true;

	if(confirm("ظاهراً اطلاعات صحيح وارد شده اند . آيا مايل به ارسال ايميل هستيد ؟")){document.Form.send.click();} else {document.Form.ok.disabled=false;}
}


function parsiphpform13b()
{
	if (document.Form.contact_name.value == "") {
	alert(". لطفا عنواني براي پيام خود وارد نماييد");
	document.Form.contact_name.focus();
	return false;
	}

	if (document.Form.contact_text.value == "") {
	alert(". لطفا متن پيام خود وارد نماييد");
	document.Form.contact_text.focus();
	return false;
	}

	if (document.Form.secCode.value == "") {
	alert(". لطفا نوشته داخل عكس را در مكان كد امنيتي وارد نماييد");
	document.Form.secCode.focus();
	return false;
	}

	document.Form.ok.disabled=true;

	if(confirm("ظاهراً اطلاعات صحيح وارد شده اند . آيا مايل به ارسال ايميل هستيد ؟")){document.Form.send.click();} else {document.Form.ok.disabled=false;}
}


function parsiphpform14()
{
	window.location = "Maneger/index.php";
}


function parsiphpform15()
{
	window.location = "Maneger/index.php?SignOut=true";
}


function parsiphpform17()
{
	if (document.Form.shop_category.value == "0") {
	alert(". لطفا گروه محصول خود را انتخاب نماييد");
	document.Form.shop_category.focus();
	return false;
	}

	if (document.Form.shop_title.value == "") {
	alert(". لطفا عنواني براي محصول خود وارد نماييد");
	document.Form.shop_title.focus();
	return false;
	}

	if (document.Form.shop_desc.value == "") {
	alert(". لطفا توضيح مختصري براي محصول خود وارد نماييد");
	document.Form.shop_desc.focus();
	return false;
	}

	if (document.Form.shop_details.value == "") {
	alert(". لطفا توضيح كاملي براي محصول خود وارد نماييد");
	document.Form.shop_details.focus();
	return false;
	}

	if (document.Form.shop_price.value == "") {
	alert(". لطفا براي محصول خود قيمتي مشخص نماييد");
	document.Form.shop_price.focus();
	return false;
	}

	if (document.Form.shop_cd.value == "") {
	alert(". لطفا تعداد سي دي محصول خود را مشخص نماييد");
	document.Form.shop_cd.focus();
	return false;
	}

	if (document.Form.shop_postaddress.value == "") {
	alert(". لطفا لينك خريد پستي محصول خود را وارد نماييد");
	document.Form.shop_postaddress.focus();
	return false;
	}

	if (document.Form.secCode.value == "") {
	alert(". لطفا نوشته داخل عكس را در مكان كد امنيتي وارد نماييد");
	document.Form.secCode.focus();
	return false;
	}

	document.Form.ok.disabled=true;

	if(confirm("ظاهراً اطلاعات صحيح وارد شده اند . آيا مايل به ثبت اطلاعات هستيد ؟")){document.Form.send.click();} else {document.Form.ok.disabled=false;}
}


function parsiphpform17b()
{
	if (document.Form.shop_category.value == "0") {
	alert(". لطفا گروه محصول خود را انتخاب نماييد");
	document.Form.shop_category.focus();
	return false;
	}

	if (document.Form.shop_title.value == "") {
	alert(". لطفا عنواني براي محصول خود وارد نماييد");
	document.Form.shop_title.focus();
	return false;
	}

	if (document.Form.shop_desc.value == "") {
	alert(". لطفا توضيح مختصري براي محصول خود وارد نماييد");
	document.Form.shop_desc.focus();
	return false;
	}

	if (document.Form.shop_details.value == "") {
	alert(". لطفا توضيح كاملي براي محصول خود وارد نماييد");
	document.Form.shop_details.focus();
	return false;
	}

	if (document.Form.shop_price.value == "") {
	alert(". لطفا براي محصول خود قيمتي مشخص نماييد");
	document.Form.shop_price.focus();
	return false;
	}

	if (document.Form.shop_cd.value == "") {
	alert(". لطفا تعداد سي دي محصول خود را مشخص نماييد");
	document.Form.shop_cd.focus();
	return false;
	}

	if (document.Form.shop_postaddress.value == "") {
	alert(". لطفا لينك خريد پستي محصول خود را وارد نماييد");
	document.Form.shop_postaddress.focus();
	return false;
	}

	document.Form.ok.disabled=true;

	if(confirm("ظاهراً اطلاعات صحيح وارد شده اند . آيا مايل به ثبت اطلاعات هستيد ؟")){document.Form.send.click();} else {document.Form.ok.disabled=false;}
}


function parsiphpform18()
{
	if (document.Form.block_title.value == "") {
	alert(". لطفا عنوان بلوك خود را وارد نماييد");
	document.Form.block_title.focus();
	return false;
	}

	if (document.Form.block_type.value == "0") {
	alert(". لطفا نوع بلوك خود را انتخاب نماييد");
	document.Form.block_type.focus();
	return false;
	}

	if (document.Form.block_type.value == "1" && document.Form.block_address.value == "") {
	alert(". لطفا نام فايل بلوك خود را وارد نماييد");
	document.Form.block_address.focus();
	return false;
	}

	if (document.Form.block_type.value == "2" && document.Form.block_content.value == "") {
	alert(". لطفا محتواي بلوك خود را وارد نماييد");
	document.Form.block_content.focus();
	return false;
	}

	if (document.Form.secCode.value == "") {
	alert(". لطفا نوشته داخل عكس را در مكان كد امنيتي وارد نماييد");
	document.Form.secCode.focus();
	return false;
	}

	document.Form.ok.disabled=true;

	if(confirm("ظاهراً اطلاعات صحيح وارد شده اند . آيا مايل به ثبت اطلاعات هستيد ؟")){document.Form.send.click();} else {document.Form.ok.disabled=false;}
}


function parsiphpform18b()
{
	if (document.Form.block_title.value == "") {
	alert(". لطفا عنوان بلوك خود را وارد نماييد");
	document.Form.block_title.focus();
	return false;
	}

	if (document.Form.block_type.value == "0") {
	alert(". لطفا نوع بلوك خود را انتخاب نماييد");
	document.Form.block_type.focus();
	return false;
	}

	if (document.Form.block_place.value == "0") {
	alert(". لطفا موقعيّت بلوك خود را انتخاب نماييد");
	document.Form.block_place.focus();
	return false;
	}

	if (document.Form.block_type.value == "1" && document.Form.block_address.value == "") {
	alert(". لطفا نام فايل بلوك خود را وارد نماييد");
	document.Form.block_address.focus();
	return false;
	}

	if (document.Form.block_type.value == "2" && document.Form.block_content.value == "") {
	alert(". لطفا محتواي بلوك خود را وارد نماييد");
	document.Form.block_content.focus();
	return false;
	}

	document.Form.ok.disabled=true;

	if(confirm("ظاهراً اطلاعات صحيح وارد شده اند . آيا مايل به ثبت اطلاعات هستيد ؟")){document.Form.send.click();} else {document.Form.ok.disabled=false;}
}


function parsiphpform19()
{
	if (document.Form.comment_content.value == "") {
	alert(". لطفا پيام خود را وارد نماييد");
	document.Form.comment_content.focus();
	return false;
	}

	document.Form.ok.disabled=true;
	document.Form.send.click();
}


function parsiphpform20()
{
	if (document.Forum.forum_username.value == "") {
	alert(". لطفا نام خود را وارد نماييد");
	document.Forum.forum_username.focus();
	return false;
	}

	if (document.Forum.forum_email.value != "") {
	if (!emailRE.test(document.Forum.forum_email.value)) {
	alert(". پست الكتريكي وارد شده معتبر نمي باشد");
	document.Forum.forum_email.focus();
	return false;
	}}

	if (document.Forum.forum_text.value == "") {
	alert(". لطفا پيام خود را وارد نماييد");
	document.Forum.forum_text.focus();
	return false;
	}

	if (document.Forum.secCode.value == "") {
	alert(". لطفا نوشته داخل عكس را در مكان كد امنيتي وارد نماييد");
	document.Forum.secCode.focus();
	return false;
	}

	document.Forum.ok.disabled=true;
	document.Forum.send2.click();
}


function parsiphpform22a()
{
	if (document.Form.extrapages_title.value == "") {
	alert(". لطفا عنوان صفحه خود را وارد نماييد");
	document.Form.extrapages_title.focus();
	return false;
	}

	if (document.Form.secCode.value == "") {
	alert(". لطفا نوشته داخل عكس را در مكان كد امنيتي وارد نماييد");
	document.Form.secCode.focus();
	return false;
	}

	document.Form.ok.disabled=true;

	if(confirm("ظاهراً اطلاعات صحيح وارد شده اند . آيا مايل به ثبت اطلاعات هستيد ؟")){document.Form.send.click();} else {document.Form.ok.disabled=false;}
}


function parsiphpform22b()
{
	if (document.Form.extrapages_title.value == "") {
	alert(". لطفا عنوان صفحه خود را وارد نماييد");
	document.Form.extrapages_title.focus();
	return false;
	}

	document.Form.ok.disabled=true;

	if(confirm("ظاهراً اطلاعات صحيح وارد شده اند . آيا مايل به ثبت اطلاعات هستيد ؟")){document.Form.send.click();} else {document.Form.ok.disabled=false;}
}


function parsiphpform21()
{
	document.location="index.php?do=PollShow";
}

function parsiphpform22(id)
{
	document.location=''+id+'';
}

function my_delete(id , note){
show_id('delete_error');
my_div_mover_only(4 , 0 , 0 , 0 ,'delete_error');
write_in_id('delete_note',note);
write_in_id('delete_yes','<a href="?id='+id+'"><img src="images/yes.gif" border="0"></a>');
}

function postchange(id , note, action){
show_id('delete_error');
my_div_mover_only(4 , 0 , 0 , 0 ,'delete_error');
write_in_id('delete_note',note);
write_in_id('delete_yes','<a href="?'+action+'='+id+'"><img src="images/yes.gif" border="0"></a>');
}

function poll_action(note,type){
show_id('delete_error');
my_div_mover_only(4 , 0 , 0 , 0 ,'delete_error');
write_in_id('delete_note',note);
write_in_id('delete_yes','<a href="?'+type+'=Yes"><img src="images/yes.gif" border="0"></a>');
}

function my_requst(id , note){
show_id('requst');
my_div_mover_only(4 , 0 , 0 , 0 ,'requst');
write_in_id('requst_note',note);
write_in_id('requst_yes','<a href="?id='+id+'"><img src="images/yes.gif" border="0"></a>');
write_in_id('requst_no','<a href="?Mail='+id+'"><img src="images/no.gif" border="0"></a>');
}

function hide_id(id) {
      if(document.getElementById(id)) {
            document.getElementById(id).style.display ='none';
      }

}


function show_id(id) {
      if(document.getElementById(id)) {
            document.getElementById(id).style.display ='inline';
      }

}


function SyncWithServerTime(serverTime)
{
	if (serverTime) {
	  	/* update time difference cookie */
		tdCookie='e107_tdOffset=';
		tdSetTimeCookie='e107_tdSetTime=';
		serverDelta=Math.floor(localTime-serverTime);
	  	document.cookie = tdCookie+serverDelta;
	  	document.cookie = tdSetTimeCookie+(localTime-serverDelta); /* server time when set */
	}

	tzCookie = 'e107_tzOffset=';
	if (document.cookie.indexOf(tzCookie) < 0) {
		/* set if not already set */
		timezoneOffset = nowLocal.getTimezoneOffset(); /* client-to-GMT in minutes */
		document.cookie = tzCookie + timezoneOffset;
	}
}

if(document.getElementById&&!document.all){ns6=1;}else{ns6=0;}
var agtbrw=navigator.userAgent.toLowerCase();
var operaaa=(agtbrw.indexOf('opera')!=-1);
var head="display:''";
var folder='';


function expandit(curobj, hide) {
if(document.getElementById(curobj)) {
folder=document.getElementById(curobj).style;
} else {
if(ns6==1||operaaa==true) {
folder=curobj.nextSibling.nextSibling.style;
} else {
			folder=document.all[curobj.sourceIndex+1].style;
}
}
if(folder.display=="none")
	{
		folder.display="";
} else {
folder.display="none";}
	if(hide) {
var hide_objects = hide.split(",");
for(i=0; i<hide_objects.length; i++) {
	hide_objects[i]=hide_objects[i].replace(/^\s*(.*)/, "$1");
hide_objects[i]=hide_objects[i].replace(/(.*?)\s*$/, "$1");
if(document.getElementById(hide_objects[i])) {
hidden=document.getElementById(hide_objects[i]).style;
if(hidden.display=="") {
hidden.display="none";
}
}
}
}
}
function showLayer(layerName) 
{
    if (document.getElementById(layerName).style.display == 'none' ) {
		document.getElementById(layerName).style.display = '';
	} else
	{
		document.getElementById(layerName).style.display = 'none';
	}  
}

var IE = document.all?true:false;if (!IE) document.captureEvents(Event.MOUSEMOVE);
document.onmousemove = getMouseXY;var mousex = 0;var mousey = 0; var sdd=0; var sddn=0; var stl=0; var llink = 0;var iwt_scrollleft=0;var iwt_scrolltop=0;
function getMouseXY(e) { if (document.documentElement.scrollLeft) { iwt_scrollleft = document.documentElement.scrollLeft; } else { iwt_scrollleft=document.body.scrollLeft; }
if (document.documentElement.scrollTop) { iwt_scrolltop = document.documentElement.scrollTop; } else { iwt_scrolltop=document.body.scrollTop; }
if (IE) {mousex = event.clientX+iwt_scrollleft;mousey = event.clientY + iwt_scrolltop;  } else { mousex = e.pageX;mousey = e.pageY;  }
if (mousex < 0){mousex = 0}  if (mousey < 0){mousey = 0}
} document.write('<div id="iwebtoolthumbnaildiv" style="position:absolute;visibility:hidden;z-index:9999;top:0;left:0;"></div>');
window.onload = function () {var x = document.getElementsByTagName('a');for (var i=0;i<x.length;i++)
{ x[i].onmouseover = function() { if (!sdd && !document.cookie.match("iwt_disable")) {   if (this.getAttribute('rel') && this.getAttribute('rel').indexOf('noprev')!==-1) { } else { showdd(this.getAttribute("href")); sdd=1;}   } }
x[i].onmousemove = function() { if (!sdd && !document.cookie.match("iwt_disable")) {  if (this.getAttribute('rel') && this.getAttribute('rel').indexOf('noprev')!==-1) { } else { sdd=1; showdd(this.getAttribute("href"));}   } }
x[i].onmouseout = function() { sdd=0; setTimeout("hidedd();",500); }	}}
function showdd(link){ var chkext=link.substr(0,4);
ddomain=document.location.href;ddomain=ddomain.replace("http://","");ddomain=ddomain.replace("https://","");ddomain=ddomain.replace("www.","");var ddomain=ddomain.split('/'); var ddomain = ddomain[0];
ldomain=link;ldomain=ldomain.replace("http://","");ldomain=ldomain.replace("https://","");var ldomain=ldomain.split('/'); var ldomain = ldomain[0];ldomainc=ldomain.replace("www.","");
if (ldomainc && ddomain && chkext=="http" && !ldomainc.match(ddomain)){chg=1; if (llink!==ddomain) {var bc ="004891"; if (!bc) { bc="004891"; } document.getElementById('iwebtoolthumbnaildiv').innerHTML="<table width=\"210\" style=\"border-collapse: collapse;border: 1px solid #"+bc+";\" bgcolor=\"#ffffff\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" onmouseover=\"sddn=1;\" onmouseout=\"sddn=0;setTimeout('hidedd();',500);\"><tr><td style=\"padding:1px 1px 1px 1px;\" bgcolor=\"#"+bc+"\"><table cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse;\" width=\"100%\"><tr><td height=\"18\" style=\"padding:1px 1px 1px 1px;\"><font style=\"font-size:7pt;font-family:verdana,tahoma,arial;color:#ffffff;font-weight:bold;\">Parsi Php Website Preview</font></td><td style=\"padding:1px 1px 1px 1px;\" align=\"right\"><a href=\"#\" title=\". جهت غير فعال كردن نمايش اين صفحه اين جا كليك نماييد\" style=\"font-size:8pt;text-decoration:none;color:#ffffff;font-family:tahoma\" onclick=\"iwt_ds();return false;\">[ غير فعال ]</a></font></td></tr></table></td></tr><tr><td style=\"padding:1px 1px 1px 1px;\"> <table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse;\"><tr><td colspan=\"2\" height=\"150\" bgcolor=\"#F5F5F5\" style=\"padding:1px 1px 1px 1px;background-image: url('images/indicator.gif'); background-repeat: no-repeat; background-position: center\" valign=\"top\"><a href=\""+link+"\" target=\"_target\"><img border=\"0\" style=\"border: solid #ffffff 1px\" onmouseover=\"this.style.borderColor='#"+bc+"'\" onmouseout=\"this.style.borderColor='#ffffff'\" src=\"http://www.iwebtool2.com/img/?r="+encodeURIComponent(document.location.href)+"&domain="+encodeURIComponent(ldomain)+"\"></a></td></tr><tr><td style=\"padding:1px 1px 1px 1px;\"><div style=\"width:185;overflow:hidden;\"><a href=\""+link+"\" target=\"_target\" style=\"font-family: Tahoma;font-size: 8pt;color: #336699;text-decoration: none\">"+ldomainc+"</a></div></td></tr></table></td></tr> </table>"; llink=ldomain; }
if (chg && !stl){ setTimeout("showddt();",700); }
else { if (window.innerWidth) { var cwidth=window.innerWidth; }else if (document.documentElement.clientWidth) { var cwidth=document.documentElement.clientWidth; }else if (document.body.clientWidth) { var cwidth=document.body.clientWidth; }
if (window.innerHeight) { var cheight=window.innerHeight; }else if (document.documentElement.clientHeight) { var cheight=document.documentElement.clientHeight; }else if (document.body.clientHeight) { var cheight=document.body.clientHeight; }
if ((mousex+230)>cwidth) { mousex=mousex-215; } else { mousex=mousex+5; } if ((mousey+210)>cheight+iwt_scrolltop) { mousey=mousey-200; } else { mousey=mousey+5; }
document.getElementById('iwebtoolthumbnaildiv').style.left=mousex+'px';document.getElementById('iwebtoolthumbnaildiv').style.top=mousey+'px'; }
} } function hidedd(){if (!sdd && !sddn) { document.getElementById('iwebtoolthumbnaildiv').innerHTML=""; document.getElementById('iwebtoolthumbnaildiv').style.visibility="hidden"; sdd=0; stl=0; }}
function showddt() { document.getElementById('iwebtoolthumbnaildiv').style.visibility='visible'; stl=1;
 if (window.innerWidth) { var cwidth=window.innerWidth; }else if (document.documentElement.clientWidth) { var cwidth=document.documentElement.clientWidth; }else if (document.body.clientWidth) { var cwidth=document.body.clientWidth; }
if (window.innerHeight) { var cheight=window.innerHeight; }else if (document.documentElement.clientHeight) { var cheight=document.documentElement.clientHeight; }else if (document.body.clientHeight) { var cheight=document.body.clientHeight; }
if ((mousex+230)>cwidth) { mousex=mousex-215; } else { mousex=mousex+5; } if ((mousey+210)>cheight+iwt_scrolltop) { mousey=mousey-200; } else { mousey=mousey+5; }
document.getElementById('iwebtoolthumbnaildiv').style.left=mousex+'px';document.getElementById('iwebtoolthumbnaildiv').style.top=mousey+'px'; }
function iwt_ds() { if (confirm("آيا مطمئن هستيد كه مي خواهيد پيش نمايش لينك ها را غير فعال كنيد ؟")) { document.cookie = "iwt_disable=1"; } }
