var Loc = 0;
var Title = 0;
var IE = (navigator.appName == "Microsoft Internet Explorer")
var OP = (window.opera) ? true : false; 
var NN = (navigator.appName == "Netscape")
	
function BookMark() {
	var Loc = window.document.location;
	var Title = document.title;
	alert(Loc);
	alert(Title);
	window.external.AddFavorite(Loc,Title);
}

function linexch(elid) {
	document.getElementById(elid).href = '/r2f/r2f.php?rf='+window.document.location;
}

function linexchi(elid) {
	document.getElementById(elid).href = '/r2f/r2f.php?rf='+window.document.location;
}


function whatagent(elid) {
	if (NN) {
			document.getElementById(elid).style.display = 'none'
	}
}

function whatagento(elid) {
	if (!IE || OP) {
			document.getElementById(elid).style.display = 'none'
	} 
}

function checkform() {
  if (document.forms.guest.person.value=="") { window.alert('Please fill in  Your name.'); document.forms.guest.person.focus();} else
  if (document.forms.guest.email.value=="") { window.alert('Please fill in  Your e-mail'); document.forms.guest.email.focus();} else
  if (document.forms.guest.person2.value=="") { window.alert('Please fill in Your friend&acute;s name.'); document.forms.guest.person2.focus();} else
  if (document.forms.guest.email2.value=="") { window.alert('Please fill in  Your friend&acute;s e-mail'); document.forms.guest.email2.focus();} else
  document.forms.guest.submit();
}

function reset() {
  document.forms.guest.reset();
}

function chf() {
  history.back ();
}
