// JavaScript Document

// Copyright (c) Miss Reid Florist	
// $Revision: 1.0 $	

<!-- 

function setOptions(a,chosen) {
var selbox = a.colour2;
 
selbox.options.length = 0;
if (chosen == "") {
  selbox.options[selbox.options.length] = new Option('Select a first colour',' ');
 
}
if (chosen == "White") {
  selbox.options[selbox.options.length] = new Option('Second colour choice...','');
  selbox.options[selbox.options.length] = new Option('Orange','Orange');
  selbox.options[selbox.options.length] = new Option('Pink','Pink');
  selbox.options[selbox.options.length] = new Option('Yellow','Yellow');
}
if (chosen == "Orange") {
  selbox.options[selbox.options.length] = new Option('Second colour choice...','');
  selbox.options[selbox.options.length] = new Option('White','White');
  selbox.options[selbox.options.length] = new Option('Pink','Pink');
  selbox.options[selbox.options.length] = new Option('Yellow','Yellow');
}
if (chosen == "Pink") {
  selbox.options[selbox.options.length] = new Option('Second colour choice...','');
  selbox.options[selbox.options.length] = new Option('White','White');
  selbox.options[selbox.options.length] = new Option('Orange','Orange');
  selbox.options[selbox.options.length] = new Option('Yellow','Yellow');
}
if (chosen == "Yellow") {
  selbox.options[selbox.options.length] = new Option('Second colour choice...','');
  selbox.options[selbox.options.length] = new Option('White','White');
  selbox.options[selbox.options.length] = new Option('Orange','Orange');
  selbox.options[selbox.options.length] = new Option('Pink','Pink');
}
}

function checkuserprice(formname,formname2) {
var checkprice = (formname2+30)
var exceptionalprice = document[formname].elements['exceptional']
if ( exceptionalprice.value == "") {
window.alert("Please insert a price for the exceptional option.");
exceptionalprice.focus();
return false;}
else if ( exceptionalprice.value < checkprice) {
window.alert("Please insert an amount which is greater than the Deluxe price by at least $30.");
exceptionalprice.focus();
return false;}
return true;
}

function noEnter(e){
var characterCode
	 if(e && e.which){
	 e = e
	 characterCode = e.which
	 }
	 else{
	 e = event
	 characterCode = e.keyCode
	 }	 
	 if(characterCode == 13){
 	 return false
	 }
	 else{
	 return true
	 }
}


function actionchange()
  {
    // alter the action and submit the form
    document.form1.action = "checkout2.asp?Category=9";
    document.form1.submit();
  }
  
function pageheader(menunumber)	
	{
		// changes the colour style on the navigation to alert the user what page they are on
		if (menunumber != "") {
		document.getElementById(menunumber).style.color = "#000000"; 
	}
 }
 
function changeindexbg()
	{
		// changes the background image on the index page
		document.getElementById("center").style.backgroundImage = "url(Assets/images/template/index_bg.gif)";
	}

function changeindexbg2()
	{
		// changes the background image on the index page
		document.getElementById("center").style.backgroundImage = "url(Assets/images/template/about_us_bg.jpg)";
	}    
	
function changeindexbg3()
	{
		// changes the background image on the index page
		document.getElementById("center").style.backgroundImage = "url(Assets/images/template/contact_us_bg.jpg)";
	} 
	
function changeindexbg4()
	{
		// changes the background image on the index page
		document.getElementById("center").style.backgroundImage = "url(Assets/images/template/product_bg.gif)";
	} 
function changeindexbg5()
	{
		// changes the background image on the index page
		document.getElementById("center").style.backgroundImage = "url(Assets/images/template/norose_bg.gif)";
	}
	
function movesidecontent(categoryident)
	{
		if (categoryident==5) {
		document.getElementById("sidecontent").style.left = "550px";
		document.getElementById("sidecontent").style.width = "83px";
		}
	} 
	function pviiClassNew(obj, new_style) { //v2.7 by PVII
  obj.className=new_style;
}



//-->