if (document.images) {
   
     button1 = new Image
     button2 = new Image
	 
	 button3 = new Image
     button4 = new Image
	 
	 button5 = new Image
     button6 = new Image
	 
	 button7 = new Image
     button8 = new Image
	 
	 button9 = new Image
     button10 = new Image
	 
	 button11 = new Image
     button12 = new Image
	 
	 button13 = new Image
     button14 = new Image
	 
	 button15 = new Image
     button16 = new Image
	 
	 button17 = new Image
     button18 = new Image
	 
	 
	 	 
     button1.src = 'http://www.cityscrapbooking.com.au/images/home.jpg'
     button2.src = 'http://www.cityscrapbooking.com.au/images/home-hvr.jpg'
	 
	 button3.src = 'http://www.cityscrapbooking.com.au/images/shop.jpg'
     button4.src = 'http://www.cityscrapbooking.com.au/images/shop-hvr.jpg'
	 
	 button5.src = 'http://www.cityscrapbooking.com.au/images/class.jpg'
     button6.src = 'http://www.cityscrapbooking.com.au/images/class-hvr.jpg'
	 
	 button7.src = 'http://www.cityscrapbooking.com.au/images/gallery.jpg'
     button8.src = 'http://www.cityscrapbooking.com.au/images/gallery-hvr.jpg'
	 
	 button9.src = 'http://www.cityscrapbooking.com.au/images/hints.jpg'
     button10.src = 'http://www.cityscrapbooking.com.au/images/hints-hvr.jpg'
	 
	 button11.src = 'http://www.cityscrapbooking.com.au/images/forum.jpg'
     button12.src = 'http://www.cityscrapbooking.com.au/images/forum-hvr.jpg'
	 
	 button13.src = 'http://www.cityscrapbooking.com.au/images/blog.jpg'
     button14.src = 'http://www.cityscrapbooking.com.au/images/blog-hvr.jpg'
	 
	 button15.src = 'http://www.cityscrapbooking.com.au/images/newsletter.jpg'
     button16.src = 'http://www.cityscrapbooking.com.au/images/newsletter-hvr.jpg'
	 
	 button17.src = 'http://www.cityscrapbooking.com.au/images/contact.jpg'
     button18.src = 'http://www.cityscrapbooking.com.au/images/contact-hvr.jpg'
} 


function fullcheck1()
{
  var str=document.signupform.email.value;
//alert(str);

     if (document.signupform.fname.value=="")
        {
           alert ("Blank space not allowed. Please Enter Your First Name.");
           document.signupform.fname.select(); 
           return false;
	    }  
				     if (document.signupform.email.value=="")
        {
           alert ("Blank space not allowed. Please Enter Your Email Address.");
           document.signupform.email.select(); 
           return false;
	    }  
		
		
				if ((document.signupform.email.value).indexOf(" ")>=0)
		{
		alert ("Blank space not allowed inside email!");
		document.signupform.email.select();
		return false;
		}
	
		if (document.signupform.email.value.indexOf("@",1) == -1)
		{
			alert("Invalid E-Mail address");
			document.signupform.email.focus();
			document.signupform.email.select();
			return(false);
		}
		if (document.signupform.email.value.indexOf("@") == 0)
		{
			alert("Invalid E-Mail address");
			document.signupform.email.focus();
			document.signupform.email.select();
			return(false);
		}
		if (document.signupform.email.value.indexOf(".",5) == -1)
		{
			alert("Invalid E-Mail address");
			document.signupform.email.focus();
			document.signupform.email.select();
			return(false);
		}
		if (document.signupform.email.value.indexOf(".") == 0)
		{
			alert("Invalid E-Mail address");
			document.signupform.email.focus();
			document.signupform.email.select();
			return(false);
		}
		
		if ((document.signupform.email.value.lastIndexOf(".")) -(document.signupform.email.value.indexOf("@"))<4 )
		{
		
			alert("Invalid E-Mail address");
			document.signupform.email.focus();
			document.signupform.email.select();
			return(false);
		}
}


var submitRolls = new Object();

function submitroll(src, oversrc, name)
{
this.src=src;
this.oversrc=oversrc;
this.name=name;
this.alt="Search";
this.write=submitroll_write;
}

function submitroll_write()
{
var thisform = 'document.forms[' + (document.forms.length - 1) + ']';
submitRolls[this.name] = new Object();
submitRolls[this.name].over = new Image();
submitRolls[this.name].over.src = this.oversrc;
submitRolls[this.name].out = new Image();
submitRolls[this.name].out.src = this.src;

document.write
	(
	'<A onMouseOver="if (document.images)document.images[\'' + this.name + "'].src=submitRolls['" + this.name + '\'].over.src"' + 
	' onMouseOut="if (document.images)document.images[\'' + this.name + "'].src=submitRolls['" + this.name + '\'].out.src"' + 
	' HREF="javascript:'
	);

if (this.sendfield)
	{
	if (! this.sendvalue)
		this.sendvalue = 1;
	document.write(thisform, ".elements['", this.sendfield, "'].value='", this.sendvalue, "';");
	}

document.write(thisform + '.submit();void(0);"');
document.write(' onClick="return fullcheck1()"');
document.write('>');

document.write('<IMG SRC="' + this.src + '" ALT="' + this.alt + '" BORDER=0 NAME="' + this.name + '"');
if (this.height)document.write(' HEIGHT=' + this.height);
if (this.width)document.write(' WIDTH='  + this.width);
if (this.otheratts)document.write(' ' + this.otheratts);
document.write('></A>');
if (this.sendfield)
	{
	document.write('<INPUT TYPE=HIDDEN NAME="' + this.sendfield + '">');
	document.forms[document.forms.length - 1].elements[this.sendfield].value='';
	}
}
