﻿/* Slingshot Help Scripts */
function keys(keyCode) {
	
	//allow the enter key to submit form
	if (keyCode == 13) {
	window.document.location.href = strBaseURL + document.getElementById('<%=ddlHelpCategory.ClientID%>').options[document.getElementById('<%=ddlHelpCategory.ClientID%>').selectedIndex].value + '&p_search_text=' + document.hform.txtSearchString.value; 

	popRightNow();
	}	
}	

function popRightNow(ddlValue) {
	//var winRightNow = null;
	var winRightNow;
	var searchString = (document.hform.txtSearchString.value == 'Enter question here') ? ' ' : document.hform.txtSearchString.value ;
	var sURL = strBaseURL + ddlValue + '&p_search_text=' + searchString ;
	winRightNow = open(sURL,'winRightNow');
	if (winRightNow) winRightNow.focus();		
}

function popRNFAQ(intFAQID) {
	//var winRightNow = null;
	var winRightNow;
	var sURL = 'http://slingshot.custhelp.com/cgi-bin/slingshot.cfg/php/enduser/std_adp.php?p_sid=VSjnxJmh&p_lva=&p_faqid=' + intFAQID;	
	winRightNow = open(sURL,'winRightNow');
	if (winRightNow) winRightNow.focus();		
}	

function popRNAsk() {
	//var winRightNow = null;
	var winRightNow;
	var sURL = 'http://slingshot.custhelp.com/cgi-bin/slingshot.cfg/php/enduser/ask.php';	
	winRightNow = open(sURL,'winRightNow');
	if (winRightNow) winRightNow.focus();
}

/* LLU Address Checker */
function popLLUChecker() {
    var winLLUChecker = null;
    var sURL = "/Default.aspx?p=175";
    winLLUChecker = open(sURL, 'LLUChecker', 'toolbar=no,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0,width=585,height=475');
    if (winLLUChecker) winLLUChecker.focus();
}
