function popupEmail()
{
	window.open("emailSignup.aspx","EmailSignup","width=387,height=500,status=no,toolbar=no,scrollbars=yes,menubar=no,location=no");
}

function popupPrivacy()
{
	window.open("privacy.aspx","PrivacyPolicy","width=387,height=500,status=no,toolbar=no,scrollbars=yes,menubar=no,location=no");
}

function popupTerms()
{
	window.open('terms.aspx','TermsAndConditions','width=387,height=500,status=no,toolbar=no,scrollbars=1,menubar=no,location=no');
}
function popupCompTerms()
{
	window.open('compTerms.aspx','TermsAndConditions','width=387,height=500,status=no,toolbar=no,scrollbars=1,menubar=no,location=no');
}

function popupContactUs()
{
	window.open("http://www.britvic.co.uk/SevenUpContact.aspx","ContactUs","width=387,height=500,status=no,toolbar=no,scrollbars=yes,menubar=no,location=no");
}


function getWindowSize(sizeType) {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
	//Non-IE
	myWidth = window.innerWidth;
	myHeight = window.innerHeight;
  } else if( document.documentElement &&
	  ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
	//IE 6+ in 'standards compliant mode'
	myWidth = document.documentElement.clientWidth;
	myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
	//IE 4 compatible
	myWidth = document.body.clientWidth;
	myHeight = document.body.clientHeight;
  }
  
  if (sizeType == 'width')
  {
	return myWidth;
  }
  else
  {
	return myHeight;
  }
}