﻿function SubscribeClick()
{
	var email;
	email = document.getElementById("email").value
	location.href="http://www.justyou.co.uk/subscribe.aspx?email=" + email;
}

function sn(e)
{
	var d=document.getElementById(e);
	if(d)
	{
		d.style.display='inline';
	}
}

function hn(e)
{
	var d=document.getElementById(e);
	if(d)
	{
		d.style.display='none';
	}
}

function watermarkgo(txt)
{
    if (txt.defaultValue==txt.value) txt.value = "";
}

function PopUp(strURL, strType, strWidth, strHeight) { 
 
var strOptions=""; 

//Determine whether popup is a "booking" or "enquiry" window
if (strType=="book")  {     strOptions="location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,height="+strHeight+",width="+strWidth; }
    
if (strType=="enq")  {     strOptions="location=no,toolbar=no,menubar=no,scrollbars=yes,status,height="+strHeight+",width="+strWidth; }

newWin = window.open(strURL, 'newWin', strOptions); 

if (!newWin) {
    alert('You currently have a pop-up blocker enabled, hold CTRL and ALT on your keyboard and click on the link again');
}
else {
    newWin.focus();
}

}

function CreateBookmarkLink() {

 title = "Just You"; 

 url = window.location;

	if (window.sidebar) { // Mozilla Firefox Bookmark
		window.sidebar.addPanel(title, url,"");
	} else if( window.external ) { // IE Favorite
		window.external.AddFavorite( url, title); }
	else if(window.opera && window.print) { // Opera Hotlist
		//return true;
	 }
	//return false;
 }
