<!--
var INSASS=false;
var nqmsg="On-line shopping is not supported for this browser.\n\nPlease enjoy looking around our site\nand contact us by phone, fax or e-mail\nwith your requirements."


function win(file) {
window.open(file,"","scrollbars=no,height=350,width=500,left=60,top=60");
}

function win2(file) {
window.open(file,"","scrollbars=no,height=390,width=650,left=60,top=60");
}

function win3(file) {
window.open(file,"","scrollbars=no,height=400,width=500,left=60,top=60");
}

function win4(file) {
window.open(file,"","scrollbars=no,height=500,width=500,left=60,top=60");
}

function start_shop(){
var INSASS=false;
if(!pages_browser_test()){alert(nqmsg);}
else
{
if (!top.INSASS)
{
document.cookie = "LOADTHISPAGENOW" + "=" + escape(window.location.href)+"; path=/"
top.location.href = "system/index.html";
}
}
}

function addtobasket(){
var bl2;
var sprice;
var sdomain = document.buy.hdomain.value;
var ssuffix = document.buy.hsuffix.value;
   	if (ssuffix==".com"||ssuffix==".org"||ssuffix==".net"){
   	var yr=document.buy.years;
   	bl2 = "Registration Period: " + yr.options[yr.selectedIndex].value;
   	if (bl2 =="Registration Period: 1 year"){sprice=12.50}
   	if (bl2 =="Registration Period: 2 years"){sprice=25.00}
   	if (bl2 =="Registration Period: 5 years"){sprice=62.50}
   	if (bl2 =="Registration Period: 10 years"){sprice=125.00}
   	}
   	else{
   		if (ssuffix==".co.uk"||ssuffix==".org.uk"||ssuffix==".ltd.uk"||ssuffix==".plc.uk"){
		bl2 = "Registration Period: 2 years";
		sprice = 10.00;
		}
		else{
			if (ssuffix==".info" || ssuffix ==".biz"){
		   	var yr=document.buy.years;
		   	bl2 = "Registration Period: " + yr.options[yr.selectedIndex].value;
		   	if (bl2 =="Registration Period: 2 years"){sprice=25.00}
		   	if (bl2 =="Registration Period: 5 years"){sprice=62.50}
		   	if (bl2 =="Registration Period: 10 years"){sprice=125.00}
		   	}
   				else{
   					if (ssuffix==".me.uk"){
					bl2 = "Registration Period: 2 years";
					sprice = 15.00;
					}
		   				else{
		   					if (ssuffix==".gb.com"){
		   					bl2 = "Registration Period: 2 years";
		   					sprice = 25.00;
		   					}
		   						else{
		   							if (ssuffix==".us.com"){
		   							bl2 = "Registration Period: 2 years";
		   							sprice = 35.00;
		   							}
		   								else{
											 if (ssuffix==".eu"){
											 bl2 = "Registration Period: 1 year";
											 sprice = 25.00;
		   									}
		   										else{
												bl2 = "Registration Period: 2 years";
		    										sprice = 50.00;
		    										}
		    								}
		    						}
		    				}
		    		}
	    	}
    	}
if (!top.INSASS){
//If shop not loaded, try and save info in cookie and start shop
var expdate = new Date();
FixCookieDate(expdate);
expdate.setTime(expdate.getTime() + (24 * 60 * 60 * 1000));
SetCookie("zdomain", sdomain, expdate);
	if (GetCookie("zdomain")){
	SetCookie("zsuffix", ssuffix, expdate);
	SetCookie("zprice", sprice, expdate);
	SetCookie("zreg", bl2, expdate);
	start_shop();}
	else{
	//If it is not possible to use cookies, put out a message and start the shop
	alert ("The shopping system has not been loaded. It will be loaded now and you will be returned to this page. It may be necessary to enter your selected domain name again before it can be added to the basket");
	start_shop();
	}
	}
else{
//If the shop is loaded, add items to basket as normal
additem(sdomain, ssuffix, sprice, bl2);
}
}

function additem(pdomain, psuffix, pprice, pbl2){
var sdomain = pdomain;
var ssuffix = psuffix;
var Wgt = 1;
var Tax = 1;
var bl1 = "";
var bl2 = pbl2;
var bl3 = "";
var sprice;
if (ssuffix==".ltd.uk"||ssuffix==".plc.uk"){
var regno =  prompt("You have chosen a "+ssuffix+" which requires a Company Number. Please type it here, also check that the domain name exactly matches your company name:", "" );
  	if (regno!=null&&regno>"  "){
  	bl2 = bl2 + " Company Number: " + regno;
  	sprice = 10.00;
    top.newchoice(sdomain, bl1, bl2, bl3, sprice, top.qlock(1), Wgt, Tax);
    }
    else{
    alert("Sorry, you must supply a Company Number for this type of domain");
    return false;
 	}
}
else{
  	sprice = pprice;
	top.newchoice(sdomain, bl1, bl2, bl3, sprice, top.qlock(1), Wgt, Tax);
	}
}

function reviewbasket() {
if (!top.INSASS){
	alert ("The shopping system has not been loaded. It will be loaded now and you will be returned to this page.");
start_shop();}
else{
top.reviewbasket(true);
}
}

function testcookie() {
if (GetCookie("zdomain")) {
var sdomain = GetCookie("zdomain");
	if (sdomain != ""){
	var ssuffix = GetCookie("zsuffix");
	var sprice = GetCookie("zprice");
	var bl2 = GetCookie("zreg");
	DeleteCookie("zdomain");
	DeleteCookie("zsuffix");
	DeleteCookie("zprice");
	DeleteCookie("zreg");
	additem(sdomain, ssuffix, sprice, bl2);
	}
	else{
	if(document.dform.Dname != null){document.dform.Dname.focus();}
	}
}
else{
if(document.dform.Dname != null){document.dform.Dname.focus();}
}
}

//-->