function PrintPage(){	
	if (window.location.href.indexOf("?") == -1 ) { 
	openwin(window.location.href + '?mode=print',25,25);
	}else{
	  openwin(window.location.href + '&mode=print',25,25);  
	 }
    
}

function openwin(url, tmp3, tmp4){
	scn_w = screen.availwidth;
	scn_h = screen.availheight;
	pos_x = (scn_w - tmp3)/2 - 20;
	pos_y = (scn_h - tmp4)/2;
	show3 = window.open( url,'show','width='+ tmp3 +',height='+ tmp4 +',top='+ pos_y +',left='+ pos_x +',resizable=0,scrollbars=auto,directories=0,toolbar=0,menubar=0');
	window.show3.focus();
}

function GoSearch(){
  //alert("hahahaha")
  var searchstr = document.getElementById("searchString").value;
  if (searchstr == ""){ 
       searchstr = "-";
       }
  document.getElementById("tbHiddenSearch").value = searchstr;
  //location.href = "./default.aspx?nr=8&search=" + searchstr; 
  setTimeout('__doPostBack("tbHiddenSearch","")', 0);
}

function checkEvent(IEchar, Mozchar){	
   if(Mozchar){
       if (Mozchar == 13){
           GoSearch(); 
           return false;
       }
   }else{
      if (IEchar == 13){
           GoSearch(); 
           return false;
      }  
   }
  return true;
}