function bookmark(url, description)
{
netscape="Hit CTRL+D to add a bookmark to this site."
if (navigator.appName=='Microsoft Internet Explorer')
{
window.external.AddFavorite(url, description);
}
else if (navigator.appName=='Netscape')
{
alert(netscape);
}
}

function copy_buff(obj){
	var ban1 = document.all[obj];
	Copied = ban1.createTextRange();
	Copied.execCommand("Copy");
	alert('Code copied to clipboard');
}

function popup(path,x,y)
{
   window.open(path,"","menubar=no,resizable=yes,width="+x+",height="+y+",toolbar=no,top=50,left=50,scrollbars=yes")
}

function gourl(loc)
{
	document.location.href="http://www.travel-links-network.com/"+loc;
}

function CheckFieldLength(fn,wn,rn,mc) {
  var len = fn.value.length;
  if (len > mc) {
    fn.value = fn.value.substring(0,mc);
    len = mc;
  }
  document.getElementById(wn).innerHTML = len;
  document.getElementById(rn).innerHTML = mc - len;
}

	function GetFieldValue(text, span) {
	    if(text.value !=null)
		document.getElementById(span).innerHTML = document.getElementById(text).value;
		
	}
	
	function showhide(ob)
	{
		if(document.getElementById(ob).style.display=='none')
			document.getElementById(ob).style.display='block';
		else
			document.getElementById(ob).style.display='none';
	}