
 function go2(url) { document.location.href=url; }
 
  function commentFormSubmit() {
  var cf = document.getElementById('commentform'), de = 0;
  if((de==0)&&(cf.name.value.length<4))   { de=1; alert('Please Enter your Full Name?'); cf.name.focus(); }
  if((de==0)&&(!isMail(cf.email.value)))  { de=2; alert('Please Enter a Valid Email Address'); cf.email.focus(); }
  if((de==0)&&(cf.words.value.length<10)) { de=3; alert('Please enter a longer message.'); cf.words.focus(); }
  if(de==0) { cf.submit(); }
 }

 function isMail(email) {
  return email.search(/^[\.\w_'-]+@[\w_'-]+\.[\w_-]+(\.[\w_-]+)*$/)==-1 ? false : true;
 }

 function commentResponse(r) {
  var cf = document.getElementById('commentform');
  var res = new Array(
   '<h2>Sorry...</h2>Something was wrong with your comment. Perhaps it included links, or you missed something.<br/>Please reload the pae and try again.'
  ,'<h2>Thanks!</h2>Comment posted - if it\'s not spam it should be live soon.<br/>.'
  );
  cf.innerHTML = '<div style="width:600px; height:118px; border:1px solid #aaaaaa; padding:8px;">'+res[r]+'</div>';
 }


	function winSizes() {
		var myWidth = 0, myHeight = 0;
		if( typeof( window.innerWidth ) == 'number' ) {
			myWidth = window.innerWidth;
			myHeight = window.innerHeight;
		} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
			myWidth = document.documentElement.clientWidth;
			myHeight = document.documentElement.clientHeight;
		} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
			myWidth = document.body.clientWidth;
			myHeight = document.body.clientHeight;
		}
		return new Array(myWidth, myHeight);
	}
	
	function popOver(m) {
		var winSize = winSizes();
		var popOver = document.getElementById('popOver');
		if(popOver) {
			if(m==1) {
				popOver.style.width  = winSize[0]+'px';
				popOver.style.height = winSize[1]+'px';
				/* ===========================================================================================*/
				popOver.innerHTML    = 
				'<div id="popContent">'
				+'<form method="post" class="af-form-wrapper" action="http://www.aweber.com/scripts/addlead.pl">'
				+'<div style="display: none;">'
				+'<input type="hidden" name="meta_web_form_id" value="1903719857" />'
				+'<input type="hidden" name="meta_split_id" value="" />'
				+'<input type="hidden" name="listname" value="pfreport" />'
				+'<input type="hidden" name="redirect" value="http://www.aweber.com/thankyou-coi.htm?m=text" id="redirect_07465750fb94e45b6f4aa834f3e76bf8" />'
				+'<input type="hidden" name="meta_adtracking" value="LawGem_Form" />'
				+'<input type="hidden" name="meta_message" value="1" />'
				+'<input type="hidden" name="meta_required" value="name,email" />'
				+'<input type="hidden" name="meta_tooltip" value="" />'
				+'</div>'
				+'<table cellpadding="2" cellspacing="0">'
				+'<tr>'
				+' <td colspan="3"><h1>Free Lawyers\' Marketing Report!</h1><p>Enter your name and email below and click \'submit\' to receive the report now...</p></td>'
				+' <td rowspan="4"><img src="/_gfx/PFM-Book-300.gif" width="137" height="194" alt="Free Report"/></tdrowspan="3">'
				+'</tr>'
				+'<tr>'
 				+' <td>Name</td>'
 				+' <td style="width:10px;">:</td>'
 				+' <td><input id="awf_field-5298918" type="text" name="name" class="text" value=""  tabindex="500" /></td>'
				+'</tr>'
				+'<tr>'
 				+' <td>Email</td>'
 				+' <td>:</td>'
 				+' <td><input class="text" id="awf_field-5298919" type="text" name="email" value="" tabindex="501"  /></td>'
				+'</tr>'
				+'<tr>'
 				+' <td colspan="2">&nbsp;</td>'
 				+' <td><input name="submit" class="submit" type="submit" value="Submit" tabindex="502" /></td>'
				+'</tr>'
				+'</table>'
				+'<span>[ <a href="#" onclick="popOver(0);">close window</a> ]</span>'
				+'<div style="display:none;"><img src="http://forms.aweber.com/form/displays.htm?id=jJwMzOyMnBys7A==" alt="" /></div>'
				+'</form>'
				+'</div>';
				/* ===========================================================================================*/
				popOver.style.visibility='visible';
			} else {
				popOver.style.width  = '0px';
				popOver.style.height = '0px';
				popOver.style.visibility='hidden';
			}
		}
	}


