




function vcode_ran(){
var ran_unrounded=Math.random()*100000;
var ran_number=Math.floor(ran_unrounded); 
document.getElementById("ivcode").src="vir_"+ran_number+".gif";
}




function eq_bbscf(a){
window.open('eq_bbsconfig.php?id='+a,'bbscf','width=320,height=240,scrollbars=0,status=0');
}

function sfram(f){
document.getElementById(f).target="fup";
document.getElementById(f).submit();
}

function isc_wdi(id,str){document.getElementById(id).innerHTML=str;}
function loadstdx(a){
isc_wdi("pd1","<iframe src='blank.php' frameborder='0' name='fup' scrolling='no' width='0' height='0'></iframe>");
if (a==2){ari2(590);}
}

function dms(str){
var spstr = str.split('|');
var astr1= spstr[0];
var astr2= spstr[1];
var astr3= spstr[2];
if (astr2==1){alert("อนุญาต ไว้สำหรับสมาชิก E.Q Plus เท่านั้น");}
else if(astr2==8){alert("ไอดีคุณ ถูกระงับ การใช้งาน !");}
else if (astr2==2){alert("ยังไม่ได้กรอก หัวข้อกระทู้ค่ะ");}
else if (astr2==3){alert("หัวข้อกระทู้ห้ามเกิน 100 ตัว");}
else if (astr2==4){alert("ยังไม่ได้กรอก ข้อความ");}
else if (astr2==5){alert("ข้อความ ห้ามเกิน 50000 ตัว");}
else if (astr2==6){alert("ยังไม่ได้เลือกที่เก็บ กระทู้ลงในหมวด");}
else if (astr2==7){alert("กรอกรหัสตรวจสอบผิด");}
if(astr1==1){
location.href="eq_bbs_complete.php?a=post&cat="+astr3;}}

function rms(str){

var spstr = str.split('|');

var astr1= spstr[0];
var astr2= spstr[1];
var astr3= spstr[2];
var astr4= spstr[3];

if (astr2==1){alert("อนุญาต ไว้สำหรับสมาชิก E.Q Plus เท่านั้น");}
else if(astr2==8){alert("ไอดีคุณ ถูกระงับ การใช้งาน !");}
else if (astr2==2){alert("กรุณากรอกข้อความให้เรียบ ด้วยค่ะ");}
else if (astr2==3){alert("ข้อความห้ามเกิน 10000 ตัว");}
else if (astr2==7){alert("กรอกรหัสตรวจสอบผิด");}

//if(astr1==0){isc_dbfa(form,'F');}
else if(astr1==1){
location.href="eq_bbs_complete.php?a=reply&id="+astr3+"&page="+astr4;
}


}