function initRotator() {
    // arguments: image name, rotation speed (milliseconds), 
    // path to images (optional), name of target window (optional, string)
    var rotator1 = new dw_Rotator('img1', 10000, "");
    // add the images to rotate into that image object
    rotator1.addImages("/images/css/banner.jpg", "/images/css/banner2.jpg");
    // add the corresponding actions to take onclick of those images 
    // destination url or function pointer
    rotator1.addActions("/website_design/index.php", 
        "/ecommerce/index.php");
    //rotator1.rotate(); // sometimes may want to call rotate here
    
    dw_Rotator.start();
}


function buyWebDesignPkg1() {

	var price = 225.00;
	var itemDesc = "1-3 Page Bespoke Website Design (50 percent deposit)";
	var nextURL;

	nextURL="www.watersidedesigns.net";
	
	<!-- Add to and display basket -->
	window.location.href = "http://www.romancart.com/cart.asp?itemname="+itemDesc+"&storeid=10320&quantity=1&price="+price+"&returnurl="+nextURL;
	
}

function buyWebDesignPkg2() {

	var price = 275.00;
	var itemDesc = "4-6 Page Bespoke Website Design (50 percent deposit)";
	var nextURL;

	nextURL="www.watersidedesigns.net";
	
	<!-- Add to and display basket -->
	window.location.href = "http://www.romancart.com/cart.asp?itemname="+itemDesc+"&storeid=10320&quantity=1&price="+price+"&returnurl="+nextURL;
	
}

function buyWebDesignPkg3() {

	var price = 325.00;
	var itemDesc = "7-10 Page Bespoke Website Design (50 percent deposit)";
	var nextURL;

	nextURL="www.watersidedesigns.net";
	
	<!-- Add to and display basket -->
	window.location.href = "http://www.romancart.com/cart.asp?itemname="+itemDesc+"&storeid=10320&quantity=1&price="+price+"&returnurl="+nextURL;
	
}

function sendPayment(frm, fr, other, cost, domain) {

	var price;
	var itemDesc;
	var nextURL;
	var f;
	var cr = "<BR>";
	
	
	if (cost <= 0) {
		alert ("Please enter an amount");
		return;
	}	
	
	if (frm == "") {
		alert ("Please enter your name");
		return;
	}

	
	if (fr == "Please choose one") {
		alert ("Please select the reason for payment");
		return;
	}
	
	if (domain == "") {
		alert ("Please enter a domain name");
		return;
	}
	
	if (fr=="Other"){
		f=other;
	}else{
		f=fr;}

	itemDesc = "Payment from: "+frm+cr+"Domain: "+domain+cr+"Reason: "+f;

	<!-- Replace all spaces with a + -->
	itemDesc=itemDesc.replace(/ /g,"+");
	itemDesc=itemDesc.replace(/&/g,"and");
	itemDesc=itemDesc.replace(/'/g,"");

	price=cost;
			
	nextURL="www.watersidedesigns.net";
	
	<!-- Add to and display basket -->
	window.location.href = "http://www.romancart.com/cart.asp?itemname="+itemDesc+"&storeid=10320&quantity=1&price="+price+"&returnurl="+nextURL;
	
}
function sendPayment17(frm, fr, other, cost, domain) {

	var price;
	var itemDesc;
	var nextURL;
	var f;
	var cr = "<BR>";
	
	
	if (cost <= 0) {
		alert ("Please enter an amount");
		return;
	}	
	
	if (frm == "") {
		alert ("Please enter your name");
		return;
	}

	
	if (fr == "Please choose one") {
		alert ("Please select the reason for payment");
		return;
	}
	
	if (domain == "") {
		alert ("Please enter a domain name");
		return;
	}
	
	if (fr=="Other"){
		f=other;
	}else{
		f=fr;}

	itemDesc = "Payment from: "+frm+cr+"Domain: "+domain+cr+"Reason: "+f;

	<!-- Replace all spaces with a + -->
	itemDesc=itemDesc.replace(/ /g,"+");
	itemDesc=itemDesc.replace(/&/g,"and");
	itemDesc=itemDesc.replace(/'/g,"");

	price=cost;
			
	nextURL="www.watersidedesigns.net";
	
	<!-- Add to and display basket -->
	window.location.href = "http://www.romancart.com/cart.asp?itemname="+itemDesc+"&storeid=10320&quantity=1&price="+price+"&tax=17.5&returnurl="+nextURL;
	
}
function sendPayment15(frm, fr, other, cost, domain) {

	var price;
	var itemDesc;
	var nextURL;
	var f;
	var cr = "<BR>";
	
	
	if (cost <= 0) {
		alert ("Please enter an amount");
		return;
	}	
	
	if (frm == "") {
		alert ("Please enter your name");
		return;
	}

	
	if (fr == "Please choose one") {
		alert ("Please select the reason for payment");
		return;
	}
	
	if (domain == "") {
		alert ("Please enter a domain name");
		return;
	}
	
	if (fr=="Other"){
		f=other;
	}else{
		f=fr;}

	itemDesc = "Payment from: "+frm+cr+"Domain: "+domain+cr+"Reason: "+f;

	<!-- Replace all spaces with a + -->
	itemDesc=itemDesc.replace(/ /g,"+");
	itemDesc=itemDesc.replace(/&/g,"and");
	itemDesc=itemDesc.replace(/'/g,"");

	price=cost;
			
	nextURL="www.watersidedesigns.net";
	
	<!-- Add to and display basket -->
	window.location.href = "http://www.romancart.com/cart.asp?itemname="+itemDesc+"&storeid=10320&quantity=1&price="+price+"&taxband=B&returnurl="+nextURL;
	
}

var newwindow;
var wheight = 0, wwidth = 0;
function popImage(url, title, iwidth, iheight) {
	var pwidth, pheight;
	var colour="black";
	
	if ( !newwindow || newwindow.closed ) {
		pwidth=iwidth+30;
		pheight=iheight+30;
		newwindow=window.open('','htmlname','width=' + pwidth +',height=' +pheight + ',resizable=1,top=50,left=10');
		wheight=iheight;
		wwidth=iwidth;
	}
	
	if (wheight!=iheight || wwidth!=iwidth ) {
		pwidth=iwidth+30;
		pheight=iheight+60;
		newwindow.resizeTo(pwidth, pheight);
		wheight=iheight;
		wwidth=iwidth;
	}
	
	newwindow.document.clear();
	newwindow.focus();
	newwindow.document.writeln('<html> <head> <title>' + title + '<\/title> <\/head> <body bgcolor= \"' + colour + '\"> <center>');
	newwindow.document.writeln('<img src=' + url + '>');
	newwindow.document.writeln('<\/center> <\/body> <\/html>');
	newwindow.document.close();
	newwindow.focus();
}

// Routines to tidy up popup windows when page is left
// Call with an onUnload="tidy5()" in body tag
function tidy() {
	if (newwindow && !newwindow.closed) { newwindow.close(); }
}