<!--



javascript:window.history.forward(1);


//-->

<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
function popupWindow(page) {
	window.open('popups/' + (page),'popup','width=400,height=400,scrollbars=1');
	}
	
	
function popupWindowscroll(page) {
	window.open('popups/' + (page),'popup','width=400,height=400,scrollbars=1');
	}
	

function checkName(){
	var name = document.MyForm.llcname.value;
	alert("We are opening a new window that will take you to the department of state of Pennsylvania's web site.  You need to click the link that says \"General Name Search - Free Search\" then enter the name you would like to use in the box labeled \"Entity Name \" to check your name's availability");
	window.open('name-check-framset.cfm?name='+(name),'namecheck','width=720,height=600,scrollbars=1,resizable=1');
}


function haveLLC(){
	sec1.style.display = "block";
	gotit.style.display = "none";
	}
function busType(business){
	if ((business) == "construction"){
	financeinsurance.style.display = "none";
	bustypenow.style.display = "block";
	construction.style.display = "block";
	manufacturing.style.display = "none";
	realestate.style.display = "none";
	rentalleasing.style.display = "none";
	transportwarehousing.style.display = "none";
	healthcare.style.display = "none";
	foodservice.style.display = "none";
	wholesaleagent.style.display = "none";
	wholesaleother.style.display = "none";
	retail.style.display = "none";
	other.style.display = "none";
	othermore.style.display = "none";
	}else if ((business) == "financeinsurance"){
	
	bustypenow.style.display = "block";
financeinsurance.style.display = "block";		
	construction.style.display = "none";
	manufacturing.style.display = "none";
	realestate.style.display = "none";
	rentalleasing.style.display = "none";
	transportwarehousing.style.display = "none";
	healthcare.style.display = "none";
	foodservice.style.display = "none";
	wholesaleagent.style.display = "none";
	wholesaleother.style.display = "none";
	retail.style.display = "none";
	other.style.display = "none";
	othermore.style.display = "none";
	
	}else if ((business) == "manufacturing"){
	bustypenow.style.display = "block";
	construction.style.display = "none";
	financeinsurance.style.display = "none";	
	manufacturing.style.display = "block";
	realestate.style.display = "none";
	rentalleasing.style.display = "none";
	transportwarehousing.style.display = "none";
	healthcare.style.display = "none";
	foodservice.style.display = "none";
	wholesaleagent.style.display = "none";
	wholesaleother.style.display = "none";
	retail.style.display = "none";
	other.style.display = "none";
	othermore.style.display = "none";
	} else if ((business) == "realestate"){
	bustypenow.style.display = "block";
	financeinsurance.style.display = "none";		
	construction.style.display = "none";
	manufacturing.style.display = "none";
	realestate.style.display = "block";
	rentalleasing.style.display = "none";
	transportwarehousing.style.display = "none";
	healthcare.style.display = "none";
	foodservice.style.display = "none";
	wholesaleagent.style.display = "none";
	wholesaleother.style.display = "none";
	retail.style.display = "none";
	other.style.display = "none";
	othermore.style.display = "none";
	} else if ((business) == "rentalleasing"){
	bustypenow.style.display = "block";
	financeinsurance.style.display = "none";		
	construction.style.display = "none";
	manufacturing.style.display = "none";
	realestate.style.display = "none";
	rentalleasing.style.display = "block";
	transportwarehousing.style.display = "none";
	healthcare.style.display = "none";
	foodservice.style.display = "none";
	wholesaleagent.style.display = "none";
	wholesaleother.style.display = "none";
	retail.style.display = "none";
	other.style.display = "none";
	othermore.style.display = "none";
	} else if ((business) == "transportwarehousing"){
	bustypenow.style.display = "block";
	financeinsurance.style.display = "none";		
	construction.style.display = "none";
	manufacturing.style.display = "none";
	realestate.style.display = "none";
	rentalleasing.style.display = "none";
	transportwarehousing.style.display = "block";
	healthcare.style.display = "none";
	foodservice.style.display = "none";
	wholesaleagent.style.display = "none";
	wholesaleother.style.display = "none";
	retail.style.display = "none";
	other.style.display = "none";
	othermore.style.display = "none";
	} else if ((business) == "healthcare"){
	bustypenow.style.display = "block";
	financeinsurance.style.display = "none";		
	construction.style.display = "none";
	manufacturing.style.display = "none";
	realestate.style.display = "none";
	rentalleasing.style.display = "none";
	transportwarehousing.style.display = "none";
	healthcare.style.display = "block";
	foodservice.style.display = "none";
	wholesaleagent.style.display = "none";
	wholesaleother.style.display = "none";
	retail.style.display = "none";
	other.style.display = "none";
	othermore.style.display = "none";
	} else if ((business) == "foodservice"){
	bustypenow.style.display = "block";
	financeinsurance.style.display = "none";		
	construction.style.display = "none";
	manufacturing.style.display = "none";
	realestate.style.display = "none";
	rentalleasing.style.display = "none";
	transportwarehousing.style.display = "none";
	healthcare.style.display = "none";
	foodservice.style.display = "block";
	wholesaleagent.style.display = "none";
	wholesaleother.style.display = "none";
	retail.style.display = "none";
	other.style.display = "none";
	othermore.style.display = "none";
	} else if ((business) == "wholesaleagent"){
	bustypenow.style.display = "block";
	financeinsurance.style.display = "none";		
	construction.style.display = "none";
	manufacturing.style.display = "none";
	realestate.style.display = "none";
	rentalleasing.style.display = "none";
	transportwarehousing.style.display = "none";
	healthcare.style.display = "none";
	foodservice.style.display = "none";
	wholesaleagent.style.display = "block";
	wholesaleother.style.display = "none";
	retail.style.display = "none";
	other.style.display = "none";
	othermore.style.display = "none";
	} else if ((business) == "wholesaleother"){
	bustypenow.style.display = "block";
	financeinsurance.style.display = "none";		
	construction.style.display = "none";
	manufacturing.style.display = "none";
	realestate.style.display = "none";
	rentalleasing.style.display = "none";
	transportwarehousing.style.display = "none";
	healthcare.style.display = "none";
	foodservice.style.display = "none";
	wholesaleagent.style.display = "none";
	wholesaleother.style.display = "block";
	retail.style.display = "none";
	other.style.display = "none";
	othermore.style.display = "none";
	} else if ((business) == "retail"){
	bustypenow.style.display = "block";
	financeinsurance.style.display = "none";		
	construction.style.display = "none";
	manufacturing.style.display = "none";
	realestate.style.display = "none";
	rentalleasing.style.display = "none";
	transportwarehousing.style.display = "none";
	healthcare.style.display = "none";
	foodservice.style.display = "none";
	wholesaleagent.style.display = "none";
	wholesaleother.style.display = "none";
	retail.style.display = "block";
	other.style.display = "none";
	othermore.style.display = "none";
	} else if ((business) == "other"){
	bustypenow.style.display = "block";
	financeinsurance.style.display = "none";		
	construction.style.display = "none";
	manufacturing.style.display = "none";
	realestate.style.display = "none";
	rentalleasing.style.display = "none";
	transportwarehousing.style.display = "none";
	healthcare.style.display = "none";
	foodservice.style.display = "none";
	wholesaleagent.style.display = "none";
	wholesaleother.style.display = "none";
	retail.style.display = "none";
	other.style.display = "block";
	othermore.style.display = "block";
	}
}
function resetBustype(){

document.MyForm.businesstype.value = "";
for (i=0;i<11;i++){
z = (i+1);
x = (z+1);
var bustype = "businesstype" + (x);
document.MyForm(bustype).value = "";

}
}

function haveType(){
	sec4.style.display = "block";
	sec100.style.display="block";
	}

function addNewfield(num){
	if (document.MyForm.nonag.value !== "0" || document.MyForm.agri.value !== "0" || document.MyForm.household.value != "0"){
	sec5.style.display = "block";
	}else{
	sec5.style.display = "none";
	}
	}
function addManager(obj,di){

var dis = "sec" + (di);
	if (obj.checked){
	document.all(dis).style.display = "block";
	}else {
	document.all(dis).style.display = "none";
	}
}
function addMember(obj,di){

var dis = "sec" + (di);
	if (obj.checked){
	document.all(dis).style.display = "block";
	}else{
	document.all(dis).style.display = "none";
	}
	}
function showSubmit(){
	submitty.style.display = "block";
	}
	
function submitCheck(){
	if  ((isBlock1())  &&  (agentCheck()) && (isBlock3()) && (isBlock4()) && (isBlock5()) && (isBlock6())){
	
	return true;
	}
	
	window.open('missing-LLC-info.cfm','missinginfo','width=700,height=500,scrollbars=1');
	
	
	return false;
	
	
}
function isBlock1(){
	with (document.MyForm){
		if ((llcname.value == "") || (llcaddress.value == "") || (llccity.value == "") || (llcstate.value == "") || (llczip.value == "") || (llccounty.value == "")){
		
		
		
		
		return false;
		}else{
		
		
		return true;
		}
	}
}

function agentCheck(){
with (document.MyForm){
	if(useregagent.checked){
		
		if ((registeredagent.value == "") || (regaddress.value == "") || (regcity.value == "") || (regagentstate.value == "") || (regzip.value == "")){
		return false;
		}else{
		
		return true;
		}
		
	}else{
	
	return true;
	}
}
}


function isBlock2(){


	if (((document.MyForm.newbustype.value) == "Sales") || ((document.MyForm.newbustype.value) == "Services")){ 

        for (i=0; i < document.MyForm.whomsold.length; i++)
	    	{
		if (document.MyForm.whomsold[i].checked)
			return true;
		}
		

       	return false;	
	}else if (document.MyForm.newbustype.value == "Manufacturing"){
		if (((document.MyForm.principalproduct.value) !== "") || ((document.MyForm.rawmaterial.value) !== "")){
	return true;
	
	}	else {
		return false;
		}
	}
}

function isBlock3(){
	with (document.MyForm){
		if (((nonag.value) !== "0") || ((agri.value) !== "0") || ((household.value) !== "0")){
			if ((firstdatewages.value) == ""){
			return false;
			} else {
			return true;
			}
		} else{
		return true;
		}
	}
}

function isBlock4(){
	with (document.MyForm){
		if (((bus.value) == "") || ((phone.value) == "") || ((bus2.value) == "") || ((fax.value) == "") || ((manager.value) == "") || ((managerssn.value) == "") || ((manageraddress.value) == "") || ((managercity.value) == "") || ((managerstate.value) == "") || ((managerzip.value) == "")  || ((membername.value) == "")  || ((memberssn.value) == "") || ((memaddress.value) == "") || ((memcity.value) == "") || ((memstate.value) == "") || ((memzip.value) == "") || ((ownerinterest.value) == "") || ((initialcontribution.value) == "")){
	
		return false;
		}else{
		return true;
		}
	}
}




function isBlock5(){
	for (i=0; i<4; i++){
	var z = (i + 2);
	var y = (i + 1);
	var addy = "manager" +(z)+ "address";
	var boxy = "box" + (y);
	var man = "manager" + (z);
	var city = "manager" + (z) + "city";
	var state = "manager" + (z) + "state";
	var manzip = "manager" + (z) + "zip";
		if (document.MyForm(boxy).checked){
			if ((document.MyForm(addy).value == "") || (document.MyForm(man).value == "") || (document.MyForm(city).value == "") || (document.MyForm(state).value == "") || (document.MyForm(manzip).value == "")){
			
			return false;
			}else{
			
			continue;
			}
		}else{
		return true;
		}
	}
}
		
		
		

function isBlock6(){
	for (i=0; i<4; i++){
	var z = (i + 2);
	var y = (i + 1);
	var addy = "memaddress" +(z);
	var boxy = "m" + (y);
	var man = "membername" + (z);
	var city = "memcity" + (z);
	var state = "memstate" + (z);
	var oun = "ownerinterest" + (z);
	var cont = "initialcontribution" + (z);
		if (document.MyForm(boxy).checked){
			if ((document.MyForm(addy).value == "") || (document.MyForm(man).value == "") || (document.MyForm(city).value == "") || (document.MyForm(state).value == "") || (document.MyForm(oun).value == "") || (document.MyForm(cont).value == "")){
			
			return false;
			}else{
			
			continue;
			return true;
			}
		}else{
		return true;
		}
	}
}

function noresagent(obj){
	if (obj.checked){
	agentuse.style.display="block";
	}else{
	agentuse.style.display="none";
	}
 
 
   
  
}