function submit_js()
{
	
this.my_submit=function(a1,a2,a3)   //a2==1:上一页;a2==2:下一页;a2==3:指定的;a2==4:所有
{
if(a1 && a2)
{
if(a1.my_conditiona && a2==1 ||  a2==2)
{
a1.my_conditiona?a1.my_conditiona.value=a3:"";	
}
if(a1.my_conditiona && a2>2)
{
a1.my_conditiona.value = a1.my_conditionb?a1.my_conditionb.value:1;
}
if(a2==4)
{
a1.my_conditiona?a1.my_conditiona.value="":"";
a1.my_conditionb?a1.my_conditionb.value="":"";
a1.my_conditionc?a1.my_conditionc.value="":"";
a1.my_conditiond?a1.my_conditiond.value="":"";
a1.my_conditione?a1.my_conditione.value="":"";
a1.my_conditionf?a1.my_conditionf.value="":"";
a1.my_conditiong?a1.my_conditiong.value="":"";
}
this.ceil_submit(a1)
}
}


this.ceil_submit=function(a1)
{
my_conditiona  = a1.my_conditiona?a1.my_conditiona.value:"";
my_conditionb  = a1.my_conditionb?a1.my_conditionb.value:"";
my_conditionc  = a1.my_conditionc?a1.my_conditionc.value:"";
my_conditiond  = a1.my_conditiond?a1.my_conditiond.value:"";
my_conditione  = a1.my_conditione?a1.my_conditione.value:"";
my_conditionf  = a1.my_conditionf?a1.my_conditionf.value:"";
my_conditiong  = a1.my_conditiong?a1.my_conditiong.value:"";
my_condition   = my_conditiona+","+my_conditionb+","+my_conditionc+","+my_conditiond+","+my_conditione+","+my_conditionf+","+my_conditiong;
this.make_url("my_conditiona,my_conditionb,my_conditionc,my_conditiond,my_conditione,my_conditionf,my_conditiong",my_condition,a1);
}
//===================================

this.change_passwd=function(a1,a2,a3,a4,a5,a6,a7)
{
	//a1:哪一页
	//a2:表单名
	//a3:旧密码
	//a4:新密码
	//a5:验证密码
	//a6:中英文
	//a7：ajax_path
	try
	{
a6=a6*1+1;
if(a2 && a3 && a4 && a5 && a6 && a7)
{

b1=a1?a1+".document":"document";
b1=b1+"."+a2;
if(b1 && eval(b1))
{
c1=b1+"."+a3;
c2=b1+"."+a4;
c3=b1+"."+a5;
if(eval(c1) && eval(c2) && eval(c3))
{
d1=eval(c1+".value");
d2=eval(c2+".value");
d3=eval(c3+".value");
if(d1)
{
if(d2==d3)
{
if(d2)
{
e1="pass_old="+d1+"&pass_new1="+d2+"&pass_new2="+d3;
e2=this.send_ajax_message('post',a7,e1,a6);
alert(e2);
}
else
	{
alert(a6*1==2?"You two time fill in the new password does not send, please againtries! !":"您没有填写的新密码，请再试试！！");
	}
}
else
	{
alert(a6*1==2?"You two time fill in the new password does not send, please againtries! !":"您两次填写的新密码不致，请再试试！！");
	}	
}
else
	{
alert(a6*1==2?"Please filled in you before password! !":"请填写您旧的密码！！");
	}
	
	

}
}
//
}
}
catch(e)
{
alert('error');
}
}

this.change_tj=function(a1,a2,a3,a4,a5,a6)
{
a6=a6?a6:'web';
if(a1 && a2)
{
aa=a4.getAttribute("em");
e1="web_file_id="+a1+"&web_tj="+aa+"&service_name="+a6+"&make_type=change_tj";
e2=this.send_ajax_message('post',a2,e1,a3);
if(e2 && a5 && a4)
{
e3=a5.split(",");
a4.src = (e2==2)?e3[0]:e3[1];
a4.setAttribute("em",e2);
}
}
}
this.change_sh=function(a1,a2,a3,a4,a5,a6,a7)
{
if(a7)
{
a7=(a7=='index')?'web':a7;
}
else
{
a7='web';
}
if(a1 && a2 && a6 && a7)
{
aa=a4.getAttribute("em");
e1="web_file_id="+a1+"&web_sh="+aa+"&service_type="+a6+"&service_name="+a7+"&make_type=change_sh";
//alert(e1)
e2=this.send_ajax_message('post',a2,e1,a3);
if(e2 && a5 && a4)
{
//alert(e2)
e3=a5.split(",");
a4.src = (e2==2)?e3[0]:e3[1];
a4.setAttribute("em",e2);
}
}
}
this.change_ts_frist_menus=function(a1,a2,a3,a4,a5)
{
e1="menu_list="+a1+"&ts_mode="+a2+"&make_type=set_menu_frist_ts";
e2=this.send_ajax_message('post',a4,e1,a3);
if(e2)
{
//alert(e2)
e3=e2.split("#");
for(i=0;i<e3.length;i++)
{
e4=e3[i].split("^");
new_opt=document.createElement("option");
new_opt.value=e4[0];
new_opt.text=e4[1];
a5.add(new_opt);
}

}
}

this.change_ts_one_menus=function(a1,a2,a3,a4,a5)
{
if(a1 && a2 && a4 && a5)
{
e1="menu_one="+a1+"&ts_mode="+a2+"&make_type=set_menu_one_ts";
e2=this.send_ajax_message('post',a4,e1,a3);
if(e2)
{
e3=e2.split("^");
var my_status = "ok";
for(i=0;i<a5.length;i++)
{
if(a5.options[i].value==e3[0])
{
my_status = "error";
break;
}
}
if(my_status=="ok")
{
new_opt=document.createElement("option");
new_opt.value=e3[0];
new_opt.text=e3[1];
a5.add(new_opt);
}
}
}
}
this.change_ts_menus=function(a1,a2,a3,a4,a5)
{
if(a1 && a2 && a4 && a5)
{
e1="menu_type="+a1+"&ts_mode="+a2+"&make_type=set_menu_ts";
e2=this.send_ajax_message('post',a4,e1,a3);
if(e2)
{
a5.options.length=0;
e3=e2.split("^");
for(i=0;i<e3.length;i++)
{
e4=e3[i].split(",");
new_opt=document.createElement("option");
new_opt.value=e4[0];
new_opt.text=e4[1];
a5.add(new_opt);
}
}
else
{
a5.options.length=0;
}
}
}
this.change_ts_mess=function(a1,a2,a3,a4,a5)
{
if(a1 && a2 && a4 && a5)
{
e1="ts_type="+a1+"&ts_mode="+a2+"&make_type=set_ts";
e2=this.send_ajax_message('post',a4,e1,a3);
if(e2)
{
//alert(e2)
a5.options.length=0;
e3=e2.split("^");
for(i=0;i<e3.length;i++)
{
e4=e3[i].split(",");
new_opt=document.createElement("option");
new_opt.value=e4[0];
new_opt.text=e4[1];
a5.add(new_opt);
}
}
else
{
a5.options.length=0;	
}
}
}
this.change_ts=function(a1,a2,a3,a4,a5,a6,a7)
{
if(a1 && a2 && a3)
{
//alert(a1+"<>"+a2+"<>"+a3+"<>"+a4+"<>"+a5+"<>"+a6)
e1="web_menu_id="+a1+"&web_file_id="+a2+"&web_ts="+a5+"&make_type=change_ts";
e2=this.send_ajax_message('post',a3,e1,a4);
if(e2)
{
alert(e2)
}
}
}

this.check_inptu_text1=function(form_name,input_name,my_text)
{
if(form_name && input_name && my_text)
{
a1='document.'+form_name+"."+input_name;
a2='document.'+form_name+"."+input_name+".value";
a3='document.'+form_name+"."+input_name+".value=''";
if(eval(a1))
{
b1=eval(a2);
(b1==my_text)?eval(a3):'';
}
}
}
this.check_inptu_text2=function(form_name,input_name,my_text)
{
if(form_name && input_name)
{
a1='document.'+form_name+"."+input_name;
a2='document.'+form_name+"."+input_name+".value";
a3='document.'+form_name+"."+input_name+".value='"+my_text+"'";
if(eval(a1))
{
b1=eval(a2);
(b1 && b1!=my_text)?"":eval(a3);
}
}
}

this.check_inptu_text3=function(form_name,input_name,my_text)
{
if(form_name && input_name)
{
a1='document.'+form_name+"."+input_name;
a2='document.'+form_name+"."+input_name+".value";
a3='document.'+form_name+".submit()";
if(eval(a1))
{
b1=eval(a2);
(b1 && b1!=my_text)?eval(a3):"";
}
}
}


}
