-1) {
var s = source.indexOf("", e);
scripts.push(source.substring(s_e+1, e));
source = source.substring(0, s) + source.substring(e_e+1);
}
for(var x=0; x/g, "");
if (str.length == 0){
alert("Please enter a question");
} else if (str.length > 200){
alert("Please enter a question under 200 characters long");
} else {
if (action=="search"){
if (page > 0){
$("#resultText").mask("Loading...");
} else {
$("#ask-container").mask("Loading...");
}
} else if (action=="category") {
if (back=="all" || page > 0){
$("#categoryText").mask("Loading...");
} else {
$("#categories-container").mask("Loading...");
}
} else if (action=="question") {
if (back=="category"){
$("#categoryText").mask("Loading...");
} else if (back=="search"){
$("#resultText").mask("Loading...");
} else if (back=="recent" || back=="popular"){
$("#questions-container").mask("Loading...");
}
}
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
if (action=="search"){
document.getElementById("resultText").innerHTML = xmlhttp.responseText;
slideSearch();
if (page > 0){
$("#resultText").unmask();
} else {
$("#ask-container").unmask();
}
document.getElementById("resultText").style.overflow = "hidden";
document.getElementById("categoryText").style.overflow = "visible";
document.getElementById("questionText").style.overflow = "visible";
lockQuestion();
} else if (action=="category") {
document.getElementById("categoryText").innerHTML = xmlhttp.responseText;
slideCategory();
if (back=="all" || page > 0){
$("#categoryText").unmask();
} else {
$("#categories-container").unmask();
}
document.getElementById("categoryText").style.overflow = "hidden";
document.getElementById("resultText").style.overflow = "visible";
document.getElementById("questionText").style.overflow = "visible";
} else if (action=="question") {
document.getElementById("questionText").innerHTML = xmlhttp.responseText;
document.getElementById("questionText").style.display = "block";
document.getElementById("categoryText").style.display = "none";
document.getElementById("resultText").style.display = "none";
if (back=="category"){
$("#categoryText").unmask();
} else if (back=="search"){
$("#resultText").unmask();
} else if (back=="recent" || back=="popular"){
slideRecent();
document.getElementById("questionText").style.overflow = "hidden";
document.getElementById("resultText").style.overflow = "visible";
document.getElementById("categoryText").style.overflow = "visible";
$("#questions-container").unmask();
}
}
ParseAjaxResponse(xmlhttp.responseText);
}
}
xmlhttp.open("GET","get.php?q="+escape(str)+"&a="+action+"&b="+back+"&p="+page,true);
xmlhttp.send();
}
}
// ]]>
Skip to Content
Welcome to Smart Serve Answers
Looking for answers to your questions about the online training program, technical support, or responsible service?
Ask your question here
Didn't find the answer to your question?
* Please read our
disclaimer regarding submissions.