var request = makeObject(); function makeObject() { var x; var browser = navigator.appName; if(browser == "Microsoft Internet Explorer") { x = new ActiveXObject("Microsoft.XMLHTTP"); } else { x = new XMLHttpRequest(); } return x; } function get_value() { if(space_deduct(document.frmsearchposition.url.value)==" ") { alert("Plese enter domain name to check "); document.frmsearchposition.url.focus() } else if(space_deduct(document.frmsearchposition.keyword.value)==" ") { alert("Plese enter keyword to check "); document.frmsearchposition.keyword.focus() } else { str = document.frmsearchposition.url.value; weburl = StringReplace(str, '\n', ',') if(document.frmsearchposition.search_engine[0].checked==true) url = "check_multiple_search_position.php?search_engine=google"; else if(document.frmsearchposition.search_engine[1].checked==true) url = "check_multiple_search_position.php?search_engine=yahoo"; else if(document.frmsearchposition.search_engine[2].checked==true) url = "check_multiple_search_position.php?search_engine=msn"; url = url +'&url='+ weburl + '&keyword='+document.frmsearchposition.keyword.value +'&v_code='+document.frmsearchposition.v_code.value; //alert(url) request.open('get', url); request.onreadystatechange = parseInfo; request.send(''); return false; } } function parseInfo() { if(request.readyState == 1) { document.getElementById('my_div').innerHTML = 'Checking.......'; } if(request.readyState == 4) { var answer = request.responseText; document.getElementById('my_div').innerHTML = answer; } } function StringReplace(str, strFrom, strTo) { var pos = str.indexOf(strFrom, 0); while (pos >= 0) { str = str.substring(0, pos) + strTo + str.substring(pos + strFrom.length, str.length); pos = str.indexOf(strFrom, 0); } return str; }
Domain URL:
(ex:rankwhere.com)
Keyword(s)
Search Engine
Google
Yahoo
MSN
Human Verification
(type the number in the box above it.