function OpenPackageWindow(packageURL){
	window.open(packageURL, 'winPackage', 'width=500,height=500,toolbar=0,menubar=0,scrollbars=0,resizable=0,status=0,location=0,directories=0,copyhistory=0')
}
function isRadioChecked(){
	if (!document.nav.pkgselect[2].checked){
          document.nav.pkgselect[2].checked = true;
		  document.nav.pkgselect[2].click();
    }
}

function validateForm() {	
    return true;
}
function helpOnCookie() {
    window.open("/lx1/authentication/cookiehelp.jsp","","HEIGHT=260,WIDTH=400");
}
function helpOnIE() {
    window.open("/lx1/authentication/enabling_cookie_IE.jsp","","HEIGHT=260,WIDTH=400");
}
function helpOnNC() {
    window.open("/lx1/authentication/enabling_cookie_NC.jsp","","HEIGHT=180,WIDTH=400");
}
function CallCookie(cookieName)

{
	var cookie = document.cookie;	
	var index = cookie.indexOf(cookieName + "=");
    if (-1 == index) return "";
    index = cookie.indexOf("=", index) + 1;
    var endstr = cookie.indexOf(";", index);
    if (-1 == endstr) endstr = cookie.length;
    var theCookie = unescape(cookie.substring(index, endstr));
    if ((theCookie == "") || (theCookie == null) || (theCookie == "null") || (theCookie.indexOf("undefined") >= 0) || (theCookie == (cookieName + "="))) theCookie = "";
    return theCookie;
}
function submitForm() {
   	if (validateForm()) {
		var chk = CallCookie("tcode");
   		//if(chk == null || chk =="") {
    		//helpOnCookie();
		//	return;
		//}
		//else {
	    		document.nav.submit();			    		
		//}
	} else {
 			return;
 	}
}

function pop(url) {
	var contentUrl = "javascript:winPopup('/legalresearch/payasyougo/contentlistings/publicrecords/FinderAndAssetsPublicRecords.html')";
	if(contentUrl.indexOf(",")!=-1)
	{
     newwindow=window.open(url,"ContentListing","toolbar=yes,directories=no,menubar=no,scrollbars=yes,width=550,height=500,resizable=yes");
	}
	else
	{
		newwindow=window.open(url,"ContentListing","toolbar=no,directories=no,menubar=no,scrollbars=yes,width=550,height=500,resizable=yes");	
	}
	return false;
}