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

function changeImage(imageName)
{
document["bigImage"].src = imageName;
}

function comnton(){
	//alert('fghgh');
document.getElementById("commentdivon").style.display='block';	
document.getElementById("frndidon").style.display='none';	
}
function femail(){
	//alert('fghgh');
document.getElementById("frndidon").style.display='block';	
document.getElementById("commentdivon").style.display='none';	

}

function check_comment(F) {
  var s = '';
  if (F.elements["name"].value.match(/^\s*$/))
    s += "Please enter the name\n";
  if (F.elements["living_city"].value.match(/^\s*$/))
    s += "Please enter the city\n";
  if (F.elements["comment"].value.match(/^\s*$/))
    s += "Please enter your comment\n";
  if (F.elements['com_code'].value.match(/^\s*$/))
    s += "Enter the code\n";
  if (s != '') { alert(s); return false; } else return true;
}

function check_frnd(F) {
  var s = '';
  if (F.elements["yrname"].value.match(/^\s*$/))
    s += "Please enter your name\n";
  if (F.elements["yremail"].value.match(/^\s*$/))
    s += "Please enter your email\n";
  if (F.elements["fname"].value.match(/^\s*$/))
    s += "Please enter your friends name\n";
  if (F.elements['femail'].value.match(/^\s*$/))
    s += "Enter your friends email\n";
  if (F.elements['messages'].value.match(/^\s*$/))
    s += "Enter the message\n";
  if (F.elements['fcode'].value.match(/^\s*$/))
    s += "Enter the code\n";
  if (s != '') { alert(s); return false; } else return true;
}
function hide(id) {
  var el = document.getElementById(id);
  if (el) el.style.display = 'none';
}
function toggle(id) {
  var el = document.getElementById(id);
  if (el) {
    el.style.display = el.style.display == 'none' ? '' : 'none';
    if (el.style.display == '') el.focus();
  }
}

function search_snd(){
var top_search=document.getElementById("search_for").value;
window.location="archive.php?action=search&frm=searchpage&search_for="+top_search;
}


/*{literal}
<script type="text/javascript">

var fadeimages2=new Array()
//SET IMAGE PATHS. Extend or contract array as needed
//fadeimages2[0]=["uploaded/banner/bottom/bottom_1_Autumn Leaves.jpg", "", ""] //plain image syntax
//fadeimages2[1]=["uploaded/banner/bottom/bottom__Green Sea Turtle.jpg", "", ""] //image with link syntax
//fadeimages2[2]=["images/header_image3.jpg", "", ""] //image with link and target syntax
//fadeimages2[3]=["images/header_image4.jpg", "", ""] //image with link and target syntax
{/literal}
{section name=RowContact3 loop=$ResultBanner_botom}
	{literal}
		fadeimages2[{/literal}{$smarty.section.RowContact3.index}{literal}]=["uploaded/banner/bottom/{/literal}{$ResultBanner_botom[RowContact3].banner_photo}{literal}", "{/literal}{$ResultBanner_botom[RowContact3].banr_url}{literal}", ""] //plain image syntax
	{/literal}
{/section}
{literal}

//for middle banner  start..............................................
var fadeimages3=new Array()
{/literal}
{section name=RowContact3 loop=$ResultBanner_midup1}
	{literal}
		fadeimages3[{/literal}{$smarty.section.RowContact3.index}{literal}]=["uploaded/banner/middle/{/literal}{$ResultBanner_midup1[RowContact3].banner_photo}{literal}", "{/literal}{$ResultBanner_midup1[RowContact3].banr_url}{literal}", ""] //plain image syntax
	{/literal}
{/section}
{literal}
<script type="text/javascript">
				//new fadeshow(IMAGES_ARRAY_NAME, slideshow_width, slideshow_height, borderwidth, delay, pause (0=no, 1=yes), optionalRandomOrder)
				new fadeshow(fadeimages, 469, 121, 0, 3000, 1, "R")
</script>
*/



function bkpricelist() {
					var  back_date = document.getElementById("calendario1").value;
                	//alert(back_date);
					xmlHttp=GetXmlHttpObject();
					if (xmlHttp==null)
					  {
					  alert ("Your browser does not support AJAX!");
					  return;
					  } 
					
					var url="ajax.php";
					url=url+"?back_date="+back_date;
					//url=url+"&sid="+Math.random();
					xmlHttp.onreadystatechange=priceChanged;
					xmlHttp.open("GET",url,true);
					xmlHttp.send(null);

					
					}
				function priceChanged() 
				{ 
					if (xmlHttp.readyState==4)
					{ 
					document.getElementById("bk_price_id").innerHTML=xmlHttp.responseText;
					}
				}
				
				function GetXmlHttpObject()
				{
				var xmlHttp=null;
				try
				  {
				  // Firefox, Opera 8.0+, Safari
				  xmlHttp=new XMLHttpRequest();
				  }
				catch (e)
				  {
				  // Internet Explorer
				  try
					{
					xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
					}
				  catch (e)
					{
					xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
					}
				  }
				return xmlHttp;
				}
	


