<!-- copyright ICCM 2007 -->





































<!-- script referenced in pages that display the current date -->
var now = new Date();
var days = new Array(
  'Sun','Mon','Tues',
  'Wed','Thurs','Fri','Sat');
var months = new Array(
  'Jan','Feb','Mar','Apr','May',
  'June','July','Aug','Sept','Oct',
  'Nov','Dec');
var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();
function fourdigits(number)	{
  return (number < 1000) ? number + 1900 : number;}
today =  days[now.getDay()] + ", " +
   months[now.getMonth()] + " " +
   date + ", " +
   (fourdigits(now.getYear()));

//popup window
function popUp(URL) {
day = new Date();
thing = day.getTime();
eval("page" + thing + " = window.open(URL, '" + thing + "', 'toolbar=no,scrollbars=no,location=no,statusbar=no,menubar=no,resizable=no,width=276,height=239,left = 511,top = 476');");
}

//popup window
function supportPop(URL) {
day = new Date();
thing = day.getTime();
eval("page" + thing + " = window.open(URL, '" + thing + "', 'toolbar=no,scrollbars=no,location=no,statusbar=no,menubar=no,resizable=no,width=395,height=339,left = 511,top = 476');");
}

<!--change button on hover function-->
function roll(img_name, img_src)
   {
   document[img_name].src = img_src;
   }
   
   
   
<!-- script for onmouseover event -->

function mouseOver()
	{
		document.image1.src="images/special2.gif"
	}
	
function mouseOut()
	{
		document.image1.src="images/special.gif"
	}<!-- empty form field script -->
	
	
	
//ensure necessary form fields are populated	
function validate(theform) {
	
	if(theform.tld.value == "")
	{
		alert("Please select a domain name")
		return false;
	}
/*if (theform.email.value == "" || theform.phone.value == "" || theform.name.value == "" || theform.address.value == "" || theform.location.value == "") 
		{ 
			alert("In order to set up a user account and/or register a domain we require the following details: Name, Address, Email, Phone No."); 
	return false; 
	}*/
return true;
}

function IsNumeric(sText)
{
   var ValidChars = "0123456789";
   var IsNumber=true;
   var Char;
 
   for (i = 0; i < sText.length && IsNumber == true; i++) 
      { 
      Char = sText.charAt(i); 
      if (ValidChars.indexOf(Char) == -1) 
         {
         IsNumber = false;
         }
      }
   return IsNumber;
   
   }

function isValidEmail(str) {
   return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
}


//ensure necessary form fields are populated	
function validateContact(theform) {
	
if (theform.email.value == "" || theform.name.value == "") 
		{ 
			alert("Please supply your name and email address"); 
	 return false; 
      }
	
	
if(!isValidEmail(theform.email.value)) 
   { 
      alert('You have not entered a correctly formatted email address') 
      theform.email.focus(); 
      return false; 
   } 
  
if (!IsNumeric(theform.phone.value)) 
   { 
      alert('Please enter only numbers in the phone field') 
      theform.phone.focus(); 
	   return false; 
      }     

return true;
}

<!--pre load images in html body tag-->
	function preloadImages() { //v3.0
	  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	    var i,j=d.MM_p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
	    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
	}
	
//clears default text from field when user clicks on it use with onFocus ="clearField(this)"
function clearField(field) {
  if (field.defaultValue==field.value) field.value = ""
}
	
			
		//remove chars from string
	function removeChar(str)
	{
	var len = str.length;
	//remove chars inbetween position 0 and the length of the string
	return str.substring(6, len);
	}

