function popWindow(URL, URLTitle, Height, Width, HOffset, WOffset) 
{ 
    var newwindow;
    winHeightCenter=(screen.height/2)-HOffset;
    winWidthCenter=(screen.width/2)-WOffset;
    winHeightCenter=Math.round(winHeightCenter);
    winWidthCenter=Math.round(winWidthCenter);
    newwindow=window.open(URL, URLTitle, 'titlebar=no,menubar=no,location=no,status=no,scrollbars=auto,resizable=yes,toolbar=no,top=' + winHeightCenter + ',left=' + winWidthCenter + ',height=' + Height + ',width=' + Width);
}

function cannotFillAnnualReport()
{									  
	var ddl = document.getElementById("base_middlerow_middlecol_middlebase_middlebaserow_middlebasecol2_TABLE_Content_Padding_TR_Content_Left_TD_Content_Left_TABLE_Content_Left_TR_Content_TD_Content_content_pageContentControl_optionGroup_optionGroup_ddl");
	String.prototype.endsWith = function(str) { return (this.match(str + "$") == str) };
	if (!ddl.options[ddl.selectedIndex].value.endsWith('NB') && !ddl.options[ddl.selectedIndex].value.endsWith('NB2') && !ddl.options[ddl.selectedIndex].value.endsWith('0')) {
	    if (!ddl.options[ddl.selectedIndex].value.endsWith('LAF')) {
	        annualReportInfoC()
	        return false;
	    }
	    else {
	        annualReportInfoLLC()
	        return false;
	    }
	}
	return true;
}

function annualReportInfoC()
{
	var message = "The online filing period for annual reports for Corporations, Voluntary Associations and ";
	message += "Limited Partnerships is limited to January 1st through October 31st ONLY of each year. "
	message += "If you have any questions, please contact the Secretary of State's Business and Licensing Division, (866)767-8683 or business @wvsos.com."
	alert(message);
	window.location = "/B4WVPublic/default.aspx?pageName=filingcabinet";
}

function annualReportInfoLLC() {
    var message = "The online filing period for annual reports for Limited Liability Companies and ";
    message += "Professional Limited Liability Companies is limited to January 1st through October 31st ONLY of each year. "
    message += "If you have any questions, please contact the Secretary of State's Business and Licensing Division, (866)767-8683 or business @wvsos.com."
    alert(message);
    window.location = "/B4WVPublic/default.aspx?pageName=filingcabinet";
}
