
	//var hashSpot =  self.document.location.hash
	function checkCheck(){
	//alert("before");
		if (location.href.indexOf("#") != -1) {
			alert("during");
			setVisible('topZ',false);
			setVisible('topZ2',false);
		}
	}

	function addtext() {
		var newtext = document.colourForm.colourText.value;		
		document.form2.details.value += "\nColour Code: " +newtext;
	}
	
	function getElementsByClassName(classname,tag) {
 if(!tag) tag = "*";
 var anchs =  document.getElementsByTagName(tag);
 var total_anchs = anchs.length;
 var regexp = new RegExp('\\b' + classname + '\\b');
 var class_items = new Array()
 
 for(var i=0;i<total_anchs;i++) { //Go thru all the links seaching for the class name
  var this_item = anchs[i];
  if(regexp.test(this_item.className)) {
   class_items.push(this_item);
  }
 }
 return class_items;
}



