function openLoginWin()
{
	popWin("login.php", 300, 300);
}


function popWin(url, w, h)
{
	var intWW = w;
	var intWH = h;
	var intWT = 0;              // Popup Top Position
	var intWL = 0;              // Popup Left Position
	var intSW = screen.width;   // Screen Width
	var intSH = screen.height;  // Screen Height
		
	if (screen) {
			intWL = parseInt((intSW / 2) -(intWW/2));
			intWT = parseInt((intSH / 2) - (intWH / 2));
	}

	var strOptions = ' scrollbars=0,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0';
	var windowa=null;
	windowa=window.open(url, 'popupWin', 'width=' + intWW + ',height=' + intWH + ',left=' + intWL + ',top=' + intWT + ',' + strOptions);
}



function printList(id)
{
	window.open("print_travellist.php?id=" + id, "print_travellist");
	return false;
}


function infoPopup(file)
{
	window.open(file, "info_popup", "width=540,height=320,status=0,location=0");
	return false;
}

function contactForm(id)
{
	window.open("contact_form.php", "contact_form",  "width=540,height=460,status=0,location=0");
	return false;
}

function passwordReminder()
{
	window.open("password_reminder.php", "password_reminder",  "width=540,height=300,status=0,location=0");
	return false;
}

function jobForm(id)
{
	window.open("job_form.php", "job_form",  "width=540,height=460,status=0,location=0");
	return false;
}


function sendList(id)
{
	window.open("email_travellist.php?id=" + id, "email_travellist",  "width=540,height=460,status=0,location=0");
	return false;
}


function sendToFriend(id, subcat_id)
{
	window.open("email_item.php?id=" + id + "&subcat_id=" + subcat_id, "email_item",  "width=540,height=460,status=0,location=0");
	return false;
}


function addToTravellist(id, subcat_id)
{
	window.open("add_travellist.php?id=" + id + "&subcat_id=" + subcat_id , "add_travellist", "width=460,height=400,status=0,location=0");
	
	return false;
}

function loginWin()
{
	window.open("login_form.php" , "add_travellist", "width=460,height=400,status=0,location=0");
	
	return false;
}
