function email(tourID,url) {

	var popurl = "emailtofriend.php?tourID=" + tourID + "&url_path=" + url;
	var width = 540;
	var height = 350;

	pop(popurl,width,height,0);
}
function email2(hotelID) {

	var popurl = "emailtofriend.php?hotelID=" + hotelID;
	var width = 540;
	var height = 350;

	pop(popurl,width,height,0);
}
function email3(khuyenmaiID) {

	var popurl = "emailtofriend.php?khuyenmaiID=" + khuyenmaiID;
	var width = 540;
	var height = 350;

	pop(popurl,width,height,0);
}

function email4(sanphamID) {

	var popurl = "emailtofriend.php?sanphamID=" + sanphamID;
	var width = 540;
	var height = 350;

	pop(popurl,width,height,0);
}
function email5(newsID) {

	var popurl = "emailtofriend.php?baoheID=" + newsID;
	var width = 540;
	var height = 350;

	pop(popurl,width,height,0);
}
function email6(lehoiID) {

	var popurl = "emailtofriend.php?lehoiID=" + lehoiID;
	var width = 540;
	var height = 350;

	pop(popurl,width,height,0);
}
function email7(destinationID) {

	var popurl = "emailtofriend.php?destinationID=" + destinationID;
	var width = 540;
	var height = 350;

	pop(popurl,width,height,0);
}
function pop(pop,width,height,flag)
{
	var url = pop;
	var wd = width;
	var he = height;
    
    if (flag == 0 )
    {
        window.open(url,"","toolbar=0,menubar=0,scrollbars=no,resizable=no,width=" + wd +",height=" + he + ";")
    }
    else
    {
        window.open(url,"","toolbar=0,menubar=0,scrollbars=yes,resizable=no,width=" + wd +",height=" + he + ";")
    }
}



function show_div()

{

  for( var i = 0; i < arguments.length; i++ ) {

    var element = ge(arguments[i]);

    if (element && element.style) element.style.display = '';

  }

  return false;

}



function hide_div()

{

  for( var i = 0; i < arguments.length; i++ ) {

    var element = ge(arguments[i]);

    if (element && element.style) element.style.display = 'none';

  }

  return false;

}



function hide_menu3(eln)

{

	hide_div(eln+"1_t",eln+"2_t");

	default_class3(eln+"1",eln+"2");

}

function show_menu3(eln,key)

{

	hide_menu3(eln);

	show_div(eln + key + '_t');

	change_class3(eln + key);

}

function default_class3()

{

  for( var i = 0; i < arguments.length; i++ ) {

    var element = ge(arguments[i]);

    if (element && element.style)

	{

		element.className = "ld-1";

	}

  }

  return false;

}

function change_class3(eln)

{

	var element = ge(eln);

	element.className = "ld-2";

	return false;

}



function ge(){var ea;for( var i = 0; i < arguments.length; i++ ) {var e = arguments[i];if( typeof e == 'string' )e = document.getElementById(e);if( arguments.length == 1 )return e;if( !ea )ea = new Array();ea[ea.length] = e;}

  return ea;
}
