 var defaultSheet1=document.getElementById('default1');
 var defaultSheet2=document.getElementById('default2');
 var newSheet=document.getElementById('print');
 var willWork = false;
	if(document.getElementById){
		willWork = true;
	}
	//disabling the print style sheet
	if(willWork){
		if(defaultSheet1)defaultSheet1.disabled=false;
		if(defaultSheet2)defaultSheet2.disabled=false;
		if(newSheet)newSheet.disabled=true;
	}

//turning off the main style sheet and turning on the print style sheet
function changeStyle(){
 if (willWork == true){
    if(newSheet)newSheet.disabled=false; 
    if(defaultSheet1)defaultSheet1.disabled=false;
    if(defaultSheet2)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.htm';
 }	
}


W_call_url = location.search; 
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.indexOf('print') != -1) {
	  changeStyle();
	}
}