function isset () {
    // !No description available for isset. @php.js developers: Please update the function summary text file.
    // 
    // version: 909.322
    // discuss at: http://phpjs.org/functions/isset    // +   original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
    // +   improved by: FremyCompany
    // +   improved by: Onno Marsman
    // *     example 1: isset( undefined, true);
    // *     returns 1: false    // *     example 2: isset( 'Kevin van Zonneveld' );
    // *     returns 2: true
    
    var a=arguments, l=a.length, i=0;
        if (l===0) {
        throw new Error('Empty isset'); 
    }
    
    while (i!==l) {        if (typeof(a[i])=='undefined' || a[i]===null) { 
            return false; 
        } else { 
            i++; 
        }    }
    return true;
}

function ajaxFunction()
{
	var xmlhttp;
	if (window.XMLHttpRequest)
	{
		// code for IE7+, Firefox, Chrome, Opera, Safari
		xmlhttp=new XMLHttpRequest();
	}
	else if (window.ActiveXObject)
	{
		// code for IE6, IE5
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	else
	{
		alert("Your browser does not support XMLHTTP!");
		return false;
	}
	
	return xmlhttp;
}

function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

function onlyDigits ( objEvent ) {
	var intCharCode = window.event ? objEvent.keyCode : objEvent.which;
	if ( (intCharCode > 47) && (intCharCode < 58) ) {  // Digits
		return true;
	} else {
		if ( (intCharCode == 0) || (intCharCode == 13 ) || (intCharCode == 8) ) { // Things like tab, return, and function keys
			return true;
		} else {
			return false;
		}
	}
}

function jump ( strJumpFromID, intLength, strJumpToID ) {
	var strVal = $(strJumpFromID).val();
	if ( strVal.length == intLength ) {
		if ((strVal != 'mm') && (strVal != 'dd') && (strVal != 'yyyy')) {
			$(strJumpToID).focus();					
		}
	}
}

function winOpenNew(url)
{
	//var pops    = "/site/surehits.asp?search=Get+Quotes&zipcode=" + vZipCode;
	var params  = "toolbar=1,menubar=1,location=1,scrollbars=1,resizable=1,status=1,directories=1";
	params     += ",width=" + screen.width;
	params     += ",height=" + screen.height;
	params     += ",fullscreen=1"
	window.open(url, "", params);
}

