// --- Functions relating to the Printer Friendly page ----
function go_back() {
// Due to issues with history.go(-1) and certain browsers not recognizing the
// '?print=on' argument as a different page, this code simulates the 'back'
// functionality.
  var test=String(document.location).substring(0,String(document.location).indexOf("print=on"))
  if (test.charAt(test.length-1)=='?') {test=test.substring(0,test.length-1);}
  document.location=test;
}

function printer() {
  document.location=document.location+"?print=on";
}

function printMode() {
  if (String(document.location).match("print=on")) {
    document.write('<link rel="stylesheet" href="css/print.css" />');

  }
}

function emailpopup_OLD() // changed by madhu
{
	//alert(escape(document.location));
	//return;
	myWindow = window.open("/common/email_a_friend.asp?pageid=" + escape(document.location), "email_friend", "width=300,height=300");
}

// Used by email link on every page - COPIED FROM JSP PAGES.
// added by madhu
function emailpopup()
{
	myWindow = window.open("/SUPPORT/index?page=email&pmv=y&emailBody=" + escape(document.location), "email_friend", "width=580,height=280");
}
