// JavaScript Document

function runit(num){
      if(isNaN(num)){
		  return 0;
      } else {
		  return 1;
	  }
}

function checkmail(){	
	var email=document.getElementById("email").value.indexOf("@");	
	var dot=document.getElementById("email").value.indexOf(".");	
	if(email==-1 || dot==-1){
		window.alert("You haven't submit a valid email!");
		return false;
	} else {
		var x=document.getElementById("myForm");
		x.action="submit.php";	
		x.submit();
	}
}

function callflash(category){
	AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
			'width', '660',
			'height', '150',
			'src', 'flash/banner?category='+category,
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'transparent',
			'devicefont', 'false',
			'id', 'banner',
			'bgcolor', '#ffffff',
			'name', 'banner',
			'menu', 'false',
			'allowFullScreen', 'false',
			'allowScriptAccess','sameDomain',
			'movie', 'flash/banner?category='+category,
			'salign', ''
	); //end AC code
}

function flash_index(movie,width,height){
	AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
			'width', width,
			'height', height,
			'src', 'flash/'+movie,
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'transparent',
			'devicefont', 'false',
			'id', 'flashindex',
			'bgcolor', '#ffffff',
			'name', 'flashindex',
			'menu', 'false',
			'allowFullScreen', 'false',
			'allowScriptAccess','sameDomain',
			'movie', 'flash/'+movie,
			'salign', ''
	); //end AC code
}
