function xmlhttp()
{
if(window.XMLHttpRequest){
return new XMLHttpRequest();
} else if(window.ActiveXObject){
return new ActiveXObject("Microsoft.XMLHTTP");
}
throw new Error("XMLHttp object could be created.");
}
var loader=new xmlhttp;
function ajaxLoadPage(url,request,method,fun)
{
method=method.toUpperCase();
if (method=='GET')
{
urls=url.split("?");
if (urls[1]=='' || typeof urls[1]=='undefined')
{
url=urls[0]+"?"+request;
}
else
{
url=urls[0]+"?"+urls[1]+"&"+request;
}
request=null;
}
loader.open(method,url,true);
if (method=="POST")
{
loader.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
}
loader.onreadystatechange=function(){
eval(fun+'()');
}
loader.send(request);
}
function formToRequestString(form_obj)
{
var query_string='';
var and='';
for (var i=0;icmax) {
cobj.value = cobj.value.substring(0,cmax);
alert("評論不能超過"+cmax+"個字符!");
}
else {
document.getElementById('cmax').value = cmax-cobj.value.length;
}
}
function checkform()
{
var anounname=document.getElementById('AnounName');
var C_Content=document.getElementById('C_Content');
var sC_Content=document.getElementById('sC_Content');
var anonymous=document.getElementById('Anonymous');
var pass=document.getElementById('Pass');
if (anounname.value==''){
alert('請?zhí)顚懹脩裘?);
anounname.focus();
return false;
}
if (anonymous.checked==false && pass.value==''){
alert('請輸入密碼或選擇游客發(fā)表!');
pass.focus();
return false;
}
if (C_Content.value==''||C_Content.value=='文明上網(wǎng),請對您的發(fā)言負(fù)責(zé)!'){
alert('請?zhí)顚懺u論內(nèi)容!');
C_Content.focus();
return false;
}
sC_Content.value=C_Content.value;
try{ajaxFormSubmit(document.form1,'success');
}catch(e){
document.form1.action="http://www.pharmaprovit.com/plus/Comment.asp?Action=WriteSave&flag=NotAjax";
document.form1.submit();
}
}
document.write('');亚洲高清无码东京热,亚洲高清无码中文成人在线,无码av免费一道本在线,国产很黄很色又免费的视频