<!--



javascript:window.history.forward(1);


//-->
	function goNew(){ 
				var rem, keep=0, store, obj, switcher=new Array, history=document.Data;
				for (rem=0; rem < (goNew.arguments.length-2); rem+=3) {
					store = goNew.arguments[(navigator.appName == 'Netscape')?rem:rem+1];
					if ((store.indexOf('document.layers[')==0 && document.layers==null) || (store.indexOf('document.all[')==0 && document.all==null))
						store = 'document'+store.substring(store.lastIndexOf('.'),store.length);
					obj = eval(store);
						if (obj != null) {
							switcher[keep++] = obj;
							switcher[keep++] = (history==null || history[keep-1]!=obj)?obj.src:history[keep];
							obj.src = goNew.arguments[rem+2];
						}
					}
				document.Data = switcher;
			} 
			
			function goNormal(){ 
				if (document.Data != null)
					for (var rem=0; rem<(document.Data.length-1); rem+=2)
						document.Data[rem].src=document.Data[rem+1];
			}
			
			
			
			
			function preloadImages() {
				var d=document; if(d.images) {
					if(!d.p) d.p=new Array();
						var i,j=d.p.length,a=preloadImages.arguments;
						for(i=0;
						i<a.length; i++)
					if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];
					}
				}
			}	 
			
				function popupWindowl(pagename) {
window.open((pagename), 'popupwindow', 'width=800,height=600,top=10,left=10,scrollbars=1,resizable=1');
}	 

function popupWindow(pagename) {
window.open((pagename), 'popupwindow', 'width=510,height=400,top=10,left=10,scrollbars=1,resizable=1');
}	 		
					function popupWindow2(pagename) {
window.open('popups/'+(pagename), 'popupwindow', 'width=510,height=400,top=10,left=10,scrollbars=1,resizable=1');
}	 		
function popupSample(){
window.open('lastwillsample.cfm','sample','width=400,height=600');
}

function showIt(what){
	document.all(what).style.display = "block";
	document.all.subs.style.display = "block";
	}
	
function hideIt(what){
	document.all(what).style.display = "none";
	}
function otherSt(comeon){
	if((comeon) == "New Mexico"){
	document.all.decssn.style.display = "block";
	}else{
	document.all.decssn.style.display = "none";
	}
	if((comeon) == "Minnesota" || (comeon) == "Wisconsin"){
	document.all.birthdateo.style.display = "block";
	}else{
	document.all.birthdateo.style.display = "none";
	}
	stateStuff(comeon);
}

function stateStuff(wh){

	if (((wh) == "California") || ((wh) == "Virginia") || ((wh) == "South Carolina") || ((wh) == "Wyoming") || ((wh) == "Pennsylvania") || ((wh) == "Oklahoma") || ((wh) == "New Jersey") || ((wh) == "Montana") || ((wh) == "Minnesota") || ((wh) == "Arkansas") || ((wh) == "Alabama") || ((wh) == "Connecticut") || ((wh) == "Delaware") || ((wh) == "Hawaii") || ((wh) == "Kentucky") || ((wh) == "Maine") || ((wh) == "Massachusetts") || ((wh) == "Mississippi") || ((wh) == "Oregon")){
	showIt('agent');
	}else {
	
	hideIt('agent');
	}
	moreToit(wh);
}


function moreToit(hm){
	if (((hm) == "Hawaii") || ((hm) == "Delaware") || ((hm) == "California") || ((hm) == "Maine") || ((hm) == "Mississippi")){
	showIt('alternate');
	} else {
	hideIt('alternate');
	}
}
		
function subMitting(){
	if ((declarantCheck()) && (ssnCheck()) && (bdCheck()) && (isAgent())){
	return true;
	} else {
	window.open('missing-info.cfm','missing','width=500,height=500,scrollbars=1');
	return false;
	}
	}
	

	
	
	
	
function declarantCheck(){
	with(document.MyForm){
		if ((declarantfullname.value == "") || (streetaddress.value == "") || (city.value == "") || (county.value == "") || (signaturecity.value == "") || (signaturecounty.value == "") || (signaturestate.value == "")){
		return false;
		}else{
		return true;
		}
	}
}
function ssnCheck(){
	if((document.MyForm.state.value !== "New Mexico")){
	return true;
	}else{
		if (document.MyForm.ssn.value == ""){
		return false;
		}else{
		return true;
		}
	}
}

function bdCheck(){
	if((document.MyForm.state.value !== "Minnesota") && (document.MyForm.state.value !== "Wisconsin")){
	return true;
	}else{
		if (document.MyForm.birthdate.value == ""){
		return false;
		}else{
		return true;
		}
	}
}

function isAgent(){
var wh = document.MyForm.state.value;

	if (((wh) !== "California") && ((wh) !== "Virginia") && ((wh) !== "South Carolina") && ((wh) !== "Wyoming") && ((wh) !== "Pennsylvania") && ((wh) !== "Oklahoma") && ((wh) !== "New Jersey") && ((wh) !== "Montana") && ((wh) !== "Minnesota") && ((wh) !== "Arkansas") && ((wh) !== "Alabama") && ((wh) !== "Connecticut") && ((wh) !== "Delaware") && ((wh) !== "Hawaii") && ((wh) !== "Kentucky") && ((wh) !== "Maine") && ((wh) !== "Massachusetts") && ((wh) !== "Mississippi") && ((wh) !== "Oregon")){
	return true;
	}else{
		with(document.MyForm){
			if ((agentfullname.value == "") || (agentstreetaddress.value == "") || (agentrelationship.value == "") || (agentcity.value == "") || (agenstate.value == "") || (agentphone.value == "")){
			return false;
			}else{
			return true;
			}
		}
	}
}