function bookmark_itb(title, uri){
	if (window.sidebar) {
		window.sidebar.addPanel(title, uri, "");
	}
	else if(window.opera && window.print){ // opera support
		var elem = document.createElement('a');
		elem.setAttribute('href',uri);
		elem.setAttribute('title',title);
		elem.setAttribute('rel','sidebar');
		elem.click();
	} 
	else if(document.all) {// ie support
		window.external.AddFavorite(uri, title);
	}
}



function checkfields()
{
 if ((document.frmMain.check_in_index.value == 'dd/mm/yy') || (document.frmMain.check_out_index.value == 'dd/mm/yy')) {
  alert('Please specify check in and out dates');
  return false;
 } else {
  var iDate = document.frmMain.check_in_index; //dd/mm/yyyy
  var oDate = document.frmMain.check_out_index; //dd/mm/yyyy
  var arrDatei = iDate.value.split("/");
  var arrDateo = oDate.value.split("/");
  var useDatei = new Date(arrDatei[2], arrDatei[1]-1, arrDatei[0]);
  var useDateo = new Date(arrDateo[2], arrDateo[1]-1, arrDateo[0]);
  if (useDatei > useDateo) {
   alert('Your check out date should be greater than check in date');
   return false;
  } else {
   return true;
  }
 }
 
} 
function showhide(id){ 
	if (document.getElementById){ 
		obj = document.getElementById(id); 
		if (obj.style.display == "none"){ 
			obj.style.display = ""; 
		} else { 
			obj.style.display = "none"; 
		} 
	} 
} 


<!--
/****************************************************
     Author: Eric King
     Url: http://redrival.com/eak/index.shtml
     This script is free to use as long as this info is left in
     Featured on Dynamic Drive script library (http://www.dynamicdrive.com)
****************************************************/
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win = window.open(mypage,myname,settings);
}
// -->



function tidy() {
if (win.location && !win.closed) { 
   win.close(); } 
}

function PrintThisPage() 
{ 
   var sOption="toolbar=yes,location=no,directories=yes,menubar=yes,"; 
       sOption+="scrollbars=yes,width=800,height=600,left=100,top=25"; 

   var sWinHTML = document.getElementById('contentstart').innerHTML; 
   
   var winprint=window.open("","",sOption); 
       winprint.document.open(); 
       winprint.document.write('<html><LINK href={JUMP}format/printer_friendly.css rel=Stylesheet><body><table width="100%"><tr><td align=right><a onclick="window.print()" href="#">Print</a></td></tr></table>'); 
       winprint.document.write(sWinHTML);          
       winprint.document.write('</body></html>'); 
       winprint.document.close(); 
       winprint.focus(); 
}