function checkForm()
{
	contactform=document.contactForm;
	at=contactform.email.value.indexOf("@")
	dots = contactform.email.value.indexOf(".")
	if (at == -1 || dots<1){
		alert("Please enter a valid E-mail Address")
		return false
		}
	if (contactform.contactName.value <=0){
		alert("please enter your name " );
		return false
		}	
	if (contactform.enquiry.value.length<1){
		alert("Have you entered a message?" );
		return false
		}	
}



function checksignupForm()
{
	signupform=document.signupForm;
	at=signupform.userEmail.value.indexOf("@")
	dots = signupform.userEmail.value.indexOf(".")
	if (at == -1 || dots<1){
		alert("Please enter a valid E-mail Address")
		return false
		}
	if (signupform.userName.value <=0){
		alert("please enter your name " );
		return false
		}	
if (signupform.userName.value =="Your Name"){
		alert("please enter your name " );
		return false
		}		
}

function flashWrite(fileurl,h,w,params){
flash='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="'+w+'" height="'+h+'">';
flash+='<param name="movie" value="'+fileurl+'">';
flash+='<param name="wmode" value="transparent">';
flash+='<!--[if !IE]> <-->'
flash+='<object data="'+fileurl+'" width="'+w+'" height="'+h+'" type="application/x-shockwave-flash" wmode="transparent">'
flash+='<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer">*player error*</object>'
flash+='<!--> <![endif]-->';
flash+=' </object>'
document.write(flash);
}
