function printPage() {
/*	document.getElementById('css').innerHTML="";*/
	document.getElementById('header_right').innerHTML="<img id=\"logo\" src=\"i/logo.gif\" /><div id=\"print-this\"><input type=image src=\"i/icon_print.gif\" name=\"\" value=\"PRINT\" onclick=\"window.print();\"><br /><script type=\"text/javascript\">printPage();</script><center><p><a href=\"javascript:window.close()\" class=\"closeLink\"><img style=\"border: none;\" src=\"i/close-window.gif\" /></a></p></center></div>";
	document.getElementById('masternav').innerHTML="";
	document.getElementById('left_sidebar').innerHTML="";
	document.getElementById('right_sidebar').innerHTML="";
/*	document.getElementById('footer').innerHTML=""; */
	document.getElementById('text_resize').innerHTML="";
	document.getElementById('print_email').innerHTML="";	
	document.getElementById('top_content_right').innerHTML="";
	
}

function emailPage() {
	var fromemail = prompt("Please enter your email","Enter email here"); 
	var toemail = prompt("Please enter the address you would like this page mailed to","Enter an email here"); 
	var subject = fromemail + " has sent you a page from joinwaddell.com";
	var emailbody = document.location + document.getElementById('main').innerHTML;
	document.emailform.from.value = fromemail;
	document.emailform.to.value = toemail;
	document.emailform.subject.value = subject;
	document.emailform.body.value = emailbody;
	document.emailform.submit();
}


function wopen(url, name, w, h)
{
  wleft = (screen.width - w) / 2;
  wtop = (screen.height - h) / 2;
  // IE5 and other old browsers might allow a window that is
  // partially offscreen or wider than the screen. Fix that.
  // (Newer browsers fix this for us, but let's be thorough.)
  if (wleft < 0) {
    w = screen.width;
    wleft = 0;
  }
  if (wtop < 0) {
    h = screen.height; 
    wtop = 0;
  }
  var win = window.open(url,
    name,
    'width=' + w + ', height=' + h + ', ' +
    'left=' + wleft + ', top=' + wtop + ', ' +
    'location=no, menubar=no, ' +
    'status=no, toolbar=no, scrollbars=yes, resizable=yes');
  // Just in case width and height are ignored
  win.resizeTo(w, h);
  // Just in case left and top are ignored
 win.moveTo(wleft, wtop);
  win.focus();
}