 var defaultSheet1=document.getElementById('default1');
 var defaultSheet2=document.getElementById('default2');
 var newSheet=document.getElementById('print');

//disabling the print style sheet
 defaultSheet1.disabled=false;
 defaultSheet2.disabled=false;
 newSheet.disabled=true;

//turning off the main style sheet and turning on the print style sheet
function changeStyle(){
 var willWork = '';
 if (document.getElementById){
	willWork = 'true';
 } else {
	willWork = 'false';
 }

 if (willWork == 'true'){
    newSheet.disabled=false; 
    defaultSheet1.disabled=false;
    defaultSheet2.disabled=true;
 } else {
  //for browsers that can't run this script, we send them to a special page
  document.location = '/allweb/docs/corporate/nojavascript_pf.htm';
 }	
}


W_call_url = window.top.location.toString(); 
temp_amount = W_call_url.length			//finds the amount of length in the entire original url
position1 = W_call_url.indexOf("?")		//find the position of ?
substring1 = W_call_url.substring(position1+1, temp_amount)	//we now have a string from ? to the end
//this IF only runs if there actually is a parameter passed, otherwise it does nothing.
if (substring1 != W_call_url){
	if (substring1 == "print"){
	  changeStyle();
	}
}