function createRequestObject(){ var ro; var browser = navigator.appName; if(browser == "Microsoft Internet Explorer"){ ro = new ActiveXObject("Microsoft.XMLHTTP"); }else{ ro = new XMLHttpRequest(); } return ro; } var http = createRequestObject(); // ---------------------------------------------- function sent(table_id,row_id){ var f = document.comment_form; var name = f.name.value; var email = f.email.value; var comment = f.comment.value; if(name == '') { alert("please input your name!"); }else if (email == '') { alert("please input your email!"); }else if (comment == '') { alert("please input your comment!") }else if (table_id == '') { alert(" the table_id is null! "); }else if (row_id == '') { alert(" the row_id is null! "); } else{ http.open('get','articles/ajax_comment.php?name='+name+'&email='+email+'&comment='+comment+'&table_id='+table_id+'&row_id='+row_id,true); http.onreadystatechange = handleResponse; http.send(null); } } // ---------------------------------------------- function handleResponse() { if(http.readyState == 4){ if (http.status == 200){ comment_form('post_form','success_html'); //var response = http.responseText; /*if(response.indexOf('|||' != -1)) { updates = response.split('|||'); document.getElementById(updates[0]).innerHTML = updates[1]; }*/ }else { alert("the page error!!!"); } } } function post() { reset(); if(post_form.style.display=='none'){ post_form.style.display='block'; }else{ post_form.style.display='none'; } } function reset(){ document.comment_form.name.value = ''; document.comment_form.email.value = ''; document.comment_form.comment.value = ''; } function comment_form(id,action){ document.getElementById(id).innerHTML = content[action]; }

Warning: Smarty error: unable to read resource: "Canada/" in /d1/wfbca/WFBOSC15/Smart_rev/Smarty/Smarty.class.php on line 1092
Z Mod Bedroom Clearance Ends February 5!