function termsopen()
{
var x = 0, y = 0; // default values

if (document.all) {
  x = window.screenTop + 100;
  y = window.screenLeft + 100;
}
else if (document.layers) {
  x = window.screenX + 100;
  y = window.screenY + 100;
}

var popup = window.open('FullTermsConditions.asp','popup','width=700,height=700,scrollbars=1,top='+y+',screenY='+y+',left='+x+',screenX='+x);
}
//script for helpline
function termsopen15()
{
var x = 0, y = 0; // default values

if (document.all) {
  x = window.screenTop + 100;
  y = window.screenLeft + 100;
}
else if (document.layers) {
  x = window.screenX + 100;
  y = window.screenY + 100;
}

var popup = window.open('myaccount_help.asp','popup','width=700,height=700,scrollbars=1,top='+y+',screenY='+y+',left='+x+',screenX='+x);
}
//script for Testimonials
function termsopen16()
{
var x = 0, y = 0; // default values

if (document.all) {
  x = window.screenTop + 100;
  y = window.screenLeft + 100;
}
else if (document.layers) {
  x = window.screenX + 100;
  y = window.screenY + 100;
}

var popup = window.open('Testimonials.asp','popup','width=700,height=700,scrollbars=1,top='+y+',screenY='+y+',left='+x+',screenX='+x);
}

function termsopen17()
{
var x = 0, y = 0; // default values

if (document.all) {
  x = window.screenTop + 100;
  y = window.screenLeft + 100;
}
else if (document.layers) {
  x = window.screenX + 100;
  y = window.screenY + 100;
}

var popup = window.open('Marketing.asp#12','popup','width=700,height=700,scrollbars=1,top='+y+',screenY='+y+',left='+x+',screenX='+x);
}


//script for free trial
function termsopen1()
{
	var x = 0, y = 0; // default values

	if (document.all) 
	{
		x = window.screenTop + 100;
		y = window.screenLeft + 100;
	}
	else if (document.layers) 
	{
		x = window.screenX + 100;
		y = window.screenY + 100;
	}

	var popup = window.open('members.asp','popup','width=700,height=700,scrollbars=1,top='+y+',screenY='+y+',left='+x+',screenX='+x);
}

function termsopen2()
{
	var x = 0, y = 0; // default values

	if (document.all) 
	{
		x = window.screenTop + 100;
		y = window.screenLeft + 100;
	}
	else if (document.layers) 
	{
		x = window.screenX + 100;
		y = window.screenY + 100;
	}
	var popup = window.open('myaccount_resubscribe2007.asp','popup','width=700,height=700,scrollbars=1,top='+y+',screenY='+y+',left='+x+',screenX='+x);
}

function termsopen3()
{
var x = 0, y = 0; // default values

if (document.all) {
  x = window.screenTop + 100;
  y = window.screenLeft + 100;
}
else if (document.layers) {
  x = window.screenX + 100;
  y = window.screenY + 100;
}

var popup = window.open('FullTermsConditions.asp?#8','popup','width=700,height=700,scrollbars=1,top='+y+',screenY='+y+',left='+x+',screenX='+x);
}
//script for Confidentiality
function termsopen4()
{
var x = 0, y = 0; // default values

if (document.all) {
  x = window.screenTop + 100;
  y = window.screenLeft + 100;
}
else if (document.layers) {
  x = window.screenX + 100;
  y = window.screenY + 100;
}

var popup = window.open('confidentiality.asp','popup','width=700,height=700,scrollbars=1,top='+y+',screenY='+y+',left='+x+',screenX='+x);
}

//script for Services page
function services()
{
window.open('services.asp?#1');
}

//script for Usernames and Passwords.
function termsopen5()
{
	var x = 0, y = 0; // default values

	if (document.all) 
	{
		x = window.screenTop + 100;
		y = window.screenLeft + 100;
	}
	else if (document.layers) 
	{
		x = window.screenX + 100;
		y = window.screenY + 100;
	}
	var popup = window.open('myaccount.asp','popup','width=700,height=700,scrollbars=1,top='+y+',screenY='+y+',left='+x+',screenX='+x);
}

//script for Subscriber Bulletin.
function termsopen6()
{
	var x = 0, y = 0; // default values

	if (document.all) 
	{
		x = window.screenTop + 100;
		y = window.screenLeft + 100;
	}
	else if (document.layers) 
	{
		x = window.screenX + 100;
		y = window.screenY + 100;
	}
	var popup = window.open('Marketing.asp#8','popup','width=700,height=700,scrollbars=1,top='+y+',screenY='+y+',left='+x+',screenX='+x);
}

//script for Sectoral Groups.
function termsopen7()
{
	var x = 0, y = 0; // default values

	if (document.all) 
	{
		x = window.screenTop + 100;
		y = window.screenLeft + 100;
	}
	else if (document.layers) 
	{
		x = window.screenX + 100;
		y = window.screenY + 100;
	}
	var popup = window.open('SGOUC.asp','popup','width=700,height=700,scrollbars=1,top='+y+',screenY='+y+',left='+x+',screenX='+x);
}

function accom()
{
window.open('../siw/accommodation.asp');
}

function b2b()
{
	var x = 0, y = 0; // default values

	if (document.all) 
	{
		x = window.screenTop + 100;
		y = window.screenLeft + 100;
	}
	else if (document.layers) 
	{
		x = window.screenX + 100;
		y = window.screenY + 100;
	}
	var popup = window.open('marketing.asp#13','popup','width=700,height=700,scrollbars=1,top='+y+',screenY='+y+',left='+x+',screenX='+x);
	
}

function Archive()
{
	var x = 0, y = 0; // default values

	if (document.all) 
	{
		x = window.screenTop + 100;
		y = window.screenLeft + 100;
	}
	else if (document.layers) 
	{
		x = window.screenX + 100;
		y = window.screenY + 100;
	}
	var popup = window.open('services.asp?#6','popup','width=700,height=700,scrollbars=1,top='+y+',screenY='+y+',left='+x+',screenX='+x);
	
}

//script for Subscription and Unsubscription
function subscribe()
{
	window.open('/partners/myaccount.asp');
}

function confidentialityopen()
{
var x = 0, y = 0; // default values

if (document.all) {
  x = window.screenTop + 100;
  y = window.screenLeft + 100;
}
else if (document.layers) {
  x = window.screenX + 100;
  y = window.screenY + 100;
}

var popup = window.open('confidentiality.asp','popup','width=700,height=700,scrollbars=1,top='+y+',screenY='+y+',left='+x+',screenX='+x);
}

function visitwalesaccord()
{
var x = 0, y = 0; // default values

if (document.all) {
  x = window.screenTop + 100;
  y = window.screenLeft + 100;
}
else if (document.layers) {
  x = window.screenX + 100;
  y = window.screenY + 100;
}

var popup = window.open('visitwalesaccord.asp','popup','width=700,height=700,scrollbars=1,top='+y+',screenY='+y+',left='+x+',screenX='+x);
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


function wizard_confirm_demo ()
{
    // CONFIRM REQUIRES ONE ARGUMENT
    var message = "Clicking back on this button will not save any changes that were made on this page. Please confirm that it is OK to proceed";
    // CONFIRM IS BOOLEAN. THAT MEANS THAT
    // IT RETURNS TRUE IF 'OK' IS CLICKED
    // OTHERWISE IT RETURN FALSE
    var return_value = confirm(message);

    // TEST TO SEE IF TRUE|FALSE RETURNED
    if ( return_value == true )
        {
        self.history.back();
        }
    else
        {
        // YOUR 'CANCEL' SCRIPT GOES HERE
        }
}

function checkWholeForm() {
	description=details.description.value;
	facilities=details.facilities.value;
	about_location=details.about_location.value;
	facilityhead1=details.facilityhead1.value;
	facility1=details.facility1.value;
	facilityhead2=details.facilityhead2.value;
	facility2=details.facility2.value;
    var why = "";
    why += checklength_description(description);
    why += checklength_facilities(facilities);
    why += checklength_about_location(about_location);
    why += checklength_facilityhead1(facilityhead1);
    why += checklength_facility1(facility1);
    why += checklength_facilityhead2(facilityhead2);
    why += checklength_facility2(facility2);
      if (why != "") {
       alert(why);
       event.returnValue=false;
    }
}


function checklength_description (strng) {
var error="";
  if (strng.length > 350) {
       error = "The description is to long. please keep to less than 350 characters\n";
    }
return error;
}

function checklength_facilities (strng) {
var error="";
  if (strng.length > 300) {
       error = "The description of the facilities is to long. please keep to less than 300 characters\n";
    }
return error;
}

function checklength_about_location (strng) {
var error="";
  if (strng.length > 500) {
       error = "The about our location description is too long.\n";
    }
return error;
}

function checklength_facilityhead1 (strng) {
var error="";
  if (strng.length > 50) {
       error = "the first facility or area heading is too long.\n";
    }
return error;
}

function checklength_facility1 (strng) {
var error="";
  if (strng.length > 200) {
       error = "The description for the first facility or area is too long.\n";
    }
return error;
}

function checklength_facilityhead2 (strng) {
var error="";
  if (strng.length > 50) {
       error = "the second facility or area heading is too long.\n";
    }
return error;
}

function checklength_facility2 (strng) {
var error="";
  if (strng.length > 200) {
       error = "The description for the second facility or area is too long.\n";
    }
return error;
}