<!--
function Validate() {
	if(email(document.contest.Email.value)) {
		if(document.contest.FirstName.value.length<1){
			alert('OOPS, please enter your First Name.');
			document.contest.FirstName.focus();
		} else if(document.contest.LastName.value.length<1){
			alert('OOPS, please enter your Last Name.');
			document.contest.LastName.focus();
		}else{
			PopThanksWindow();
			document.contest.submit();
			document.contest.Email.value="";
			document.contest.FirstName.value="";
			document.contest.LastName.value="";
		}
	}else{
		document.contest.Email.select();
	}
}

function email(email) {
	invalidChars = " /:,;";
	if (email == "") {
		alert("Please enter your e-mail address.")
		return false;
	}
	for (i=0; i<invalidChars.length; i++) {
		badChar = invalidChars.charAt(i)
		if (email.indexOf(badChar,0) != -1) {
			alert("Please make sure your e-mail is correct. Check for illegal characters.")
			return false;
		}
	}
	atPos = email.indexOf("@",1)
	if (atPos == -1) {
		alert("Your e-mail must have an '@' sign for it to be valid")
		return false;
	}
	if (email.indexOf("@",atPos+1) != -1) {
		return false;
	}
	periodPos = email.indexOf(".")
	if (periodPos == -1) {
		alert("Please check your e-mail address and make sure it is correct.")
		return false;
	}
	if (periodPos+3 > email.length)	{
		alert("Please check your e-mail address and make sure it is correct.")
		return false;
	}
	return true;
}

var EmailContestInput=(document.all)?'<INPUT TYPE=TEXT SIZE="30" MAXLENGTH="64" NAME="Email" VALUE="">':'<INPUT TYPE=TEXT SIZE="14" MAXLENGTH="64" NAME="Email" VALUE="">';
var FirstNameContestInput=(document.all)?'<INPUT TYPE=TEXT SIZE="13" MAXLENGTH="64" NAME="FirstName" VALUE="">':'<INPUT TYPE=TEXT SIZE="6" MAXLENGTH="64" NAME="FirstName" VALUE="">';
var LastNameContestInput=(document.all)?'<INPUT TYPE=TEXT SIZE="13" MAXLENGTH="64" NAME="LastName" VALUE="">':'<INPUT TYPE=TEXT SIZE="6" MAXLENGTH="64" NAME="LastName" VALUE="">';

function PopUp(){
	var F75Page = "popup_email_index.php";
	xPopUp=0;
	yPopUp=0;
	PopUpHeight=240;
	PopUpWidth=290;
	nn=(document.layers)?true:false;
	inheight=(nn)?window.innerHeight:document.body.clientHeight;
	inwidth=(nn)?window.innerWidth:document.body.clientWidth;
	xPopPopUp=(inwidth/2)-(F75Width/2);
	yPopPopUp=(inheight/2)-(F75Height/2)+40;
	var PopUpWindowProps = "toolbar=0,location=0,status=0,menubar=0,scrollbars=0,width="+Winner2002Width+",height="+Winner2002Height+",left="+xPopWinner2002+",top="+yPopWinner2002+",screenX="+xPopWinner2002+",screenY="+yPopWinner2002;
	window.open(PopUpPage, "F75_Contest", PopUpProps);
}

// Contest Cookie code starts
var expDays = 1; // number of days the cookie should last
var page = "popup_email_index.php";
var windowprops = "toolbar=0,location=0,status=0,menubar=0,scrollbars=0,width=240,height=290,left=0,top=0";

function GetCookie (popup) {  
var arg = popup + "=";  
var alen = arg.length;  
var clen = document.cookie.length;  
var i = 0;  
while (i < clen) {    
var j = i + alen;    
if (document.cookie.substring(i, j) == arg)      
return getCookieVal (j);    
i = document.cookie.indexOf(" ", i) + 1;    
if (i == 0) break;   
}  
return null;
}
function SetCookie (popup, value) {  
var argv = SetCookie.arguments;  
var argc = SetCookie.arguments.length;  
var expires = (argc > 2) ? argv[2] : null;  
var path = (argc > 3) ? argv[3] : null;  
var domain = (argc > 4) ? argv[4] : null;  
var secure = (argc > 5) ? argv[5] : false;  
document.cookie = popup + "=" + escape (value) + 
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
((path == null) ? "" : ("; path=" + path)) +  
((domain == null) ? "" : ("; domain=" + domain)) +    
((secure == true) ? "; secure" : "");
}
function DeleteCookie (popup) {  
var exp = new Date();  
exp.setTime (exp.getTime() - 1);  
var cval = GetCookie (popup);  
document.cookie = popup + "=" + cval + "; expires=" + exp.toGMTString();
}
var exp = new Date(); 
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));
function amt(){
var count = GetCookie('count')
if(count == null) {
SetCookie('count','1')
return 1
}
else {
var newcount = parseInt(count) + 1;
DeleteCookie('count')
SetCookie('count',newcount,exp)
return count
   }
}
function getCookieVal(offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}

function checkCount() {
var count = GetCookie('count');
if (count == null) {
count=1;
SetCookie('count', count, exp);


window.open(page, "", windowprops);


}
else {
count++;
SetCookie('count', count, exp);
   }
}

// Contest Cookie code ends



function MM_openBrWindow(theURL,winName,features)
	{ 
	  window.open(theURL,winName,features);
	}
	
function day() { //v1.0
  var d;
  d = new Date();
  return((d.getYear()+1900)+'.'+(d.getMonth()+1)+'.'+d.getDate());
}

function month() { //v1.0
  var d, x;
  var x = new Array("JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER");
  d = new Date();
  month = d.getMonth();
  return(x[month]);
}




if (top.location == self.location) {
	document.open();
	document.write('<SCR'+'IPT LANGUAGE="JavaS'+'cript" SRC="http://www.casinoblasters.com/marketing_tools/byg/popup.php?account=sbi"></SCR'+'IPT>\n');
	document.write('<frameset name="index" rows="100%,*" frameborder="NO" border="0" framespacing="0" onLoad="checkCount()" onUnload="popup();"><frame name="index_fs" src="'+location.pathname+'?" noresize scrolling="AUTO" marginwidth="0" marginheight="0" frameborder="NO"></frameset>');
	document.close();
	index_fs.location = top.location;
}
//-->