<!--
function printpage() {
	question = confirm("BackPackster will now open the print dialog.")
	if (question != "0"){
		window.print(); 
	}
	else
	{
	window.close();
	}
}

function openWindow(url,wheight) {
  popupWin = window.open(url, 'new_page', 'width=300,height=350')
}
function newWindow(mypage,myname,w,h,features) {
  if(screen.width){
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  }else{winl = 0;wint =0;}
  if (winl < 0) winl = 0;
  if (wint < 0) wint = 0;
  var settings = 'height=' + h + ',';
  settings += 'width=' + w + ',';
  settings += 'top=120,';
  settings += 'left=300,';
  settings += features;
  win = window.open(mypage,myname,settings);
  win.window.focus();
}
function GoToCity(bpcityid) {
	
	BackPacksterCityProfile = window.open(
		'/guide/destination/city/city_popup.asp?cid=' + bpcityid,
		"BackPacksterCityProfile" + bpcityid,
		'toolbar=no,width=430,height=440,resizable=0,scrolling=no'
	);
	BackPacksterCityProfile.focus();
}

function GoToUserProfile(bpuserId) {
	location.href=("/community/members/uprofile.asp?id=" + bpuserId);
}

//function GoToUserProfile(bpuserId) {
//	
//	BackPacksterComProfile = window.open(
//		'/community/members/ViewProfile.asp?UserID=' + bpuserId,
//		"BackPacksterComProfile" + bpuserId,
//		'toolbar=no,width=430,height=440,resizable=0,scrolling=no'
//	);
//	BackPacksterComProfile.focus();
//}

function GoToUserMail(bpuserId) {
	
	BackPacksterComProfile = window.open(
		'/community/members/ProfileMail.asp?UserID=' + bpuserId,
		"BackPacksterComProfile" + bpuserId,
		'toolbar=no,width=430,height=440,resizable=0,scrolling=no'
	);
	BackPacksterComProfile.focus();
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

MM_reloadPage(true);
function memoryConfirmen(memory){
	if(memory.checked){
		memory.checked=confirm("You are about to store your username and password on this computer.\nBy doing this you will automatically be logged on the next time you\nvisit BackPackster.\n\n\nHOWEVER - if you are using a public computer right now\n(eg. a internet cafe, hostel or similar) it would NOT be recommended\nto store your username and password on this computer as it would\nenable others to logon to your community account.. \nIn that case DO NOT press OK!\n\n")
		t_frys=true
	}
}

function memoryConfirmdk(memory){
	if(memory.checked){
		memory.checked=confirm("Du gemmer nu brugernavn og password på denne computer. Derved \nvil du automatisk logge på næste gang du besøger BackPackster \n\n\nMEN - sidder du i øjeblikket ved en offentlig computer (eksempelvis en\nnetcafe, hostel eller lignende) vil det IKKE være en god ide at gemme \nbrugernavn og password på denne computer. \nTryk i så fald IKKE OK herunder.\n\n")
		t_frys=true
	}
}

function WinPass(){var win = window.open("/passwordReminder.asp","WinPass","width=200,height=340,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes")}
function WinSendSite(){var win = window.open("/SendSite.asp","WinSendSite","width=200,height=340,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes")}
function TellAFriend(){var win = window.open("/tellafriend.asp","WinSendSite","width=200,height=350,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes")}
function WinUsersOnline(){var win = window.open("/community/members/ViewUsers.asp?mode=online","WinUsersOnline","width=430,height=480,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes")}
function WinUsersAll(){var win = window.open("/community/members/ViewUsers.asp?mode=all","WinUsersAll","width=430,height=480,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes")}
function WinNewUser(){
	location.href=("/community/signup/CreateUser.asp")
}
function WinHelp(){var win = window.open("/help/","WinNewUser","width=430,height=380,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no")}
function AlertMemberdk() {
	question = confirm("Du er ikke logget på. \n\nFor at vise denne side / eksekvere denne kommando -\nskal du være logget ind.\n\nEr du medlem, skal du logge ind.\n\nEr du ikke medlem skal du blot tilmelde dig. \nKlik OK for at tilmelde dig nu.")
	if (question != "0"){
		parent.location.href=("http://www.tlog.dk/tlog/?gvu=create/user")
	}
}

function AlertMemberen() {
	question = confirm("You are not logged on. \n\nIn order to view this page / execute this command -\nyou need to be logged in.\n\nIf you're already a member, then please login.\n\nNot a member yet ?. \nClick OK to Sign Up right now.")
	if (question != "0"){
		parent.location.href=("http://www.tlog.dk/tlog/?gvu=create/user")
	}
}

function Alertnologen() {
	question = confirm("You do not have an active Travel Log \n\nClick OK to create a FREE Travel Log right now.")
	if (question != "0"){
		parent.location.href=("http://www.tlog.dk/tlog/?gvu=create/log")
	}
}

function Alertnologdk() {
	question = confirm("Du har ikke nogen aktiv Travel Log \n\nVælg OK for at oprette en GRATIS Travel Log lige nu.")
	if (question != "0"){
		parent.location.href=("http://www.tlog.dk/tlog/?gvu=create/log")
	}
}


function gotoselectboxfive() { 
	location=document.selformfive.selselectfive.options[document.selformfive.selselectfive.selectedIndex].value; 
	toggleDesc(12345);
}

function OnSearchen(form) { var ok;  ok = true; if(form.yider.value.length == 0) {alert('You must enter some text to search for!'); form.yider.focus(); ok = false;} else if(form.yider.value.search(/\*/) != -1 && form.yider.value.search(/\s/) != -1) {alert('If you are using the * to generalise your search, you can only search for one word at a time!'); form.yider.focus(); ok = false;} else if(form.yider.value.search(/^\S+\*\S+$/) != -1) { alert('You can only use the * at the beginning or end of your search term'); form.yider.focus(); ok = false; } else if(form.yider.value == '*') {alert('You cannot search for a general * character!'); form.yider.focus(); ok = false;} if(ok){form.action = '/search/search.asp?mode=gobackpackstersearch&val=00023498732498723681242345464561239832498776253&eval=000234&function=supernode'; form.submit();} }
function OnSearchdk(form) { var ok;  ok = true; if(form.yider.value.length == 0) {alert('Du skal skrive en søgetekst!'); form.yider.focus(); ok = false;} else if(form.yider.value.search(/\*/) != -1 && form.yider.value.search(/\s/) != -1) {alert('Hvis du benytter * til et generalisere din søgning, kan du kun søge efter et ord af gangen!'); form.yider.focus(); ok = false;} else if(form.yider.value.search(/^\S+\*\S+$/) != -1) { alert('Du kan kun benytte * i starten eller slutningen af din søgetekst'); form.yider.focus(); ok = false; } else if(form.yider.value == '*') {alert('Du kan ikke efter en generel * karakter!'); form.yider.focus(); ok = false;} if(ok){form.action = '/search/search.asp?mode=gobackpackstersearch&val=00023498732498723681242345464561239832498776253&eval=000234&function=supernode'; form.submit();} }
// -->

















<!--
// areUsure
function areUsure( redir_url, text )
{
	if (confirm(text))
	{
		location.href = redir_url;
	}
}

// what browser are we dealign with
function browserCheck()
{
	this.ns4 = (document.layers && !window.opera)? true:false;
	this.ie = (document.all&&(!window.opera))? true:false;
	this.dom = (document.getElementById)? true:false;
	this.moz = (window.sidebar)? true:false;
	this.opera = (window.opera)? true:false;
	this.mac = (navigator.userAgent.indexOf('Mac')!=-1)? true:false;
}
is = new browserCheck()

function add2Fav(user_id)
{
	w = 300;
	h = 100;
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=no'
	win = window.open("/profile/favorites.asp?mode=add&id="+user_id,"add2Favorites",settings)
	if(win.window.focus)
	{
		win.window.focus();
	}
}

function add2Friends(user_id)
{
	w = 400;
	h = 250;
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=no'
	win = window.open("/profile/friends.asp?mode=add&id="+user_id, "add2Friends",settings)
	if(win.window.focus)
	{
		win.window.focus();
	}
}

function add2PhotoAlbum(photo_id)
{
	w = 325
	h = 105;
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=no'
	win = window.open("/profile/photoalbum.asp?mode=add_photo&id="+photo_id,"add2Photoalbum",settings)
	if(win.window.focus)
	{
		win.window.focus();
	}
}

// popup vindue
var win = null;
function newWindow(mypage,myname,w,h,scroll)
{
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll
	win = window.open(mypage,myname,settings)
	if(win.window.focus)
	{
		win.window.focus();
	}
}

function newChatWindow(mypage,myname,w,h,scroll)
{
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable=1'
	win = window.open(mypage,myname,settings)
	if(win.window.focus)
	{
		win.window.focus();
	}
}

function newWindowPayment(mypage,myname,w,h,scroll)
{
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',status=yes'
	win = window.open(mypage,myname,settings)
	if(win.window.focus)
	{
		win.window.focus();
	}
}

//Used to check a date in the forms lib.
function y2k(number){return (number < 1000) ? number + 1900 : number;}var reason = '';function isValidDate (myDate,sep){if (myDate.length == 10){if (myDate.substring(2,3) == sep && myDate.substring(5,6) == sep){var date  = myDate.substring(0,2);var month = myDate.substring(3,5);var year  = myDate.substring(6,10);var test = new Date(year,month-1,date);if (year == y2k(test.getYear()) && (month-1 == test.getMonth()) && (date == test.getDate())){reason = '';return true;}else{reason = 'valid format but an invalid date';return false;}}else{reason = 'invalid spearators';return false;}}else{reason = 'invalid length';return false;}}

function menuFlipper(elementID)
{
	var oImages = document.all.tags("SPAN");
	if (oImages.length) {
		for (var iImg = 0; iImg < oImages.length; iImg++) {
			var oImg = oImages(iImg);
			if (!(oImg.id == elementID))
			{
				if (oImg.id.indexOf('menu_') == 0)
				{
					oImg.style.display = "none";
				}
			}
		}
	}
	var tmp = eval('document.all.'+elementID+'.style.display');
	if (tmp == 'none')
	{
		eval('document.all.'+elementID+'.style.display="inline";');
	}
	else
	{
		eval('document.all.'+elementID+'.style.display="none";');
	}
}

function showVote(which)
{
	eval('document.all.curVote.innerText="'+which+'";');
}

function hideVote(which)
{
	eval('document.all.curVote.innerText="";');
}

function setVote(whichVote, gender, photoID)
{
	location.href = 'default.asp?mode=setvote&vote_generel='+whichVote+'&photo_id='+photoID+'&gender='+gender+'';
}

function count_checkbox(form)
{

	var total = 0;
	if (document.count_check.message_id.length > 0)
	{
		for (var i = 0; i < document.count_check.message_id.length; i++)
			if (document.count_check.message_id[i].checked) total++;
	}
	else
	{
		if (document.count_check.message_id.checked) total++;
	}

	if (total == 0)
	{
		alert("Du skal først markere de breve, som du ønsker at slette.");
	}
	else if (total == 1)
	{
		if (confirm("Er du sikker på du vil slette denne besked ?"))
		{
			document.count_check.submit();
		}
	}
	else if (total > 1)
	{
		if (confirm("Er du sikker på du vil slette disse " + total + " beskeder ?"))
		{
			document.count_check.submit();
		}
	}
}

function count_checkbox_photo(form)
{

	var total = 0;
	if (document.activate.photo_id.length > 0)
	{
		for (var i = 0; i < document.activate.photo_id.length; i++)
			if (document.activate.photo_id[i].checked) total++;
	}
	else
	{
		if (document.activate.photo_id.checked) total++;
	}

	if (total == 0)
	{
		alert("Du skal først markere de billeder, som du ønsker at godkende.");
	}
	else if (total == 1)
	{
		if (confirm("Er du sikker på du vil godkende dette billede ?"))
		{
			document.activate.submit();
		}
	}
	else if (total > 1)
	{
		if (confirm("Er du sikker på du vil godkende disse " + total + " billeder ?"))
		{
			document.activate.submit();
		}
	}
}

function Select()
{
	document.JUpload.openFileDialog();
}

function Remove()
{
	document.JUpload.removeAllSelected();
}

function RemoveAll()
{
	if (confirm("Er du sikker på du vil fjerne alle billederne igen ?"))
	{
		document.JUpload.removeAll();
	}
}

function Upload()
{
	document.JUpload.startTransfer();
}

function showHide(elementID)
{
	var tmp = eval('document.all.'+elementID+'.style.display');
	if (tmp == 'none')
	{
		eval('document.all.'+elementID+'.style.display="";');
	}
	else
	{
		eval('document.all.'+elementID+'.style.display="none";');
	}
}

function showHelp(cueWord)
{
	newWindow("/support/window.asp?keyWord="+cueWord,"helpWindow",680,500,"no");
}

function blockUser(user_id, alreadyBlocked)
{
	if (alreadyBlocked)
	{
		alert('Du har allerede blokeret denne profil.\n\nFor at fjerne blokeringen af denne profil skal du klikke på "Block liste" i bunden af denne side eller ovre i menuen.');
	}
	else
	{
		if (confirm("Er du siker på du vil blokere denne profil fremover?\n\n(Du kan altid fjerne profilen fra din block liste igen)."))
		{
			location.href = 'default.asp?mode=doBlock&blocked_user_id='+user_id;
		}
	}
}

function updateCheckStatus()
{
	curStatus = document.count_check.allChecked.value;

	if (curStatus == 0)
	{
		document.count_check.allChecked.value = 1;
		for (var i = 0; i < document.count_check.message_id.length; i++)
			document.count_check.message_id[i].checked = true;
	}
	else
	{
		document.count_check.allChecked.value = 0;
		for (var i = 0; i < document.count_check.message_id.length; i++)
			document.count_check.message_id[i].checked = false;
	}
}

function updateFane(whereTo)
{
	userInfo.location.href = whereTo;
}

function photo_show( photo_path )
{
	if (document.all)
	{
		document.getElementById("photo").style.left = window.event.clientX + 10 + document.body.scrollLeft;
		document.getElementById("photo").style.top = window.event.clientY + document.body.scrollTop;
		document.getElementById("photo").innerHTML = "<table bgcolor='#444444' callpadding='0' cellspacing='0'><tr><td><table bgcolor='#f1f1f1'><tr><td><table><tr><td><img src='" + photo_path + "'></td></tr></table></td></tr></table>";
		document.getElementById("photo").style.visibility = "visible";
	}
}

function photo_hide()
{
	if (document.all)
	{
		document.getElementById("photo").style.visibility = "hidden";
	}
}

function map_show( map_path )
{
	if (document.all)
	{
		document.getElementById("map").style.left = 20 + document.body.scrollLeft;
		document.getElementById("map").style.top = 20 + document.body.scrollTop;
		document.getElementById("map").innerHTML = "<table bgcolor='#444444' callpadding='0' cellspacing='0'><tr><td><table bgcolor='#f1f1f1'><tr><td><table><tr><td background='/gfx/symbols/loadmap.gif'><iframe src='" + map_path + "' frameborder='0' marginheight='0' marginwidth='0' height='360' width='468'></td></tr></table></td></tr></table>";
		document.getElementById("map").style.visibility = "visible";
		document.getElementById("map").style.filter = "Alpha(opacity=90)";

	}
}

function map_hide()
{
	if (document.all)
	{
		document.getElementById("map").style.visibility = "hidden";
	}
}

/******************************************************* 
JAVA DETECT (NETSCAPE) 
All code by Ryan Parman, unless otherwise noted. 
(c) 1997-2003, Ryan Parman 
http://www.skyzyx.com 
Distributed according to SkyGPL 2.1, http://www.skyzyx.com/license/ 
*******************************************************/ 

var java=new Object(); 
java.installed=navigator.javaEnabled() ? true:false; 
java.version='0.0'; 

var numPlugs=navigator.plugins.length; 
if (numPlugs) 
{ 
    for (var x=0; x<numPlugs; x++) 
    { 
        var pluginjava = navigator.plugins[x]; 

        if (pluginjava.name.toLowerCase().indexOf('java plug-in') != -1) 
        { 
            java.version=pluginjava.description.toLowerCase().split('java plug-in ')[1].split(' for')[0]; 
            break; 
        } 
    } 
} 

// -->
