We all have little things that are holding us back in our playing or things we can’t figure out. Hit me up and see if I can help you resolve it.
function createRequestObject() { var request_o; //declare the variable to hold the object. var browser = navigator.appName; //find the browser name if(browser == "Microsoft Internet Explorer"){ /* Create the object using MSIE's method */ request_o = new ActiveXObject("Microsoft.XMLHTTP"); }else{ /* Create the object using other browser's method */ request_o = new XMLHttpRequest(); } return request_o; //return the object } /* The variable http will hold our new XMLHttpRequest object. */ var http = createRequestObject(); function sendRequest() {
http.open('get', 'intermerdiateCaptcha.php'); http.onreadystatechange = getResponse; http.send(null); } function getResponse() { if(http.readyState == 4) { var response = http.responseText; document.getElementById('captcha_code').value=response; } }
function frmvalidate() { var frm = document.ucan_submission_form; if(frm.ucan_submission_guest_name.value == '') { frm.ucan_submission_guest_name.focus(); alert('please enter the post author name.'); return false; } if(frm.ucan_submission_guest_email.value == '') { frm.ucan_submission_guest_email.focus(); alert('please enter email address.'); return false; } if(frm.ucan_submission_guest_email.value != '') {
var re_mail = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z])+$/; if (!re_mail.test(frm.ucan_submission_guest_email.value)) { frm.ucan_submission_guest_email.focus(); alert('please enter a valid email address'); return false; } } if(frm.ucan_submission_title.value == '') { frm.ucan_submission_title.focus(); alert('please enter the question title.'); return false; } if(frm.ucan_submission_content.value == '') { frm.ucan_submission_content.focus(); alert('please enter question.'); return false; }
if(frm.captcha_code.value!=frm.securitycode.value) { alert("please enter correct security code."); frm.securitycode.focus(); return false; }
}