// JavaScript Document
function verifyReg(formName) {	
	var emailField, formSubmit, passField, cpassField, aliasField, siteField;	
	emailField = formName + ".eml.value";	
	emailCon = formName + ".emlc.value";
	passField = formName + ".pwd.value";
	cpassField = formName + ".cpwd.value";
	aliasField = formName + ".palias.value";
	siteField = formName + ".psite.value";
	formSubmit = formName + ".submit();";
	
	if ( eval(emailField) == '' || eval(emailField).indexOf('@') < 1 || eval(emailField).indexOf('.') < 1 ) {
		alert("Please insert a valid email address"); 
		return false;} 
	if ( eval(emailField) != eval(emailCon) ) {
		alert("Email addreses do not match"); 
		return false;}
	if ( eval(passField) == '' ) {
		alert("Please enter a password"); 
		return false;}
	if ( eval(passField) != eval(cpassField) ) {
		alert("Password and Confirm Password do not match"); 
		return false;}
	if ( eval(aliasField) == '' ) {
		alert("Please enter a Primary Site Alias"); 
		return false;}
	if ( eval(siteField) < 0 ) {
		alert("Please select the site for your alias"); 
		return false;
	} 	
	eval(formSubmit);
}

function valNFR() {	
	if ( newForumReg.falias.value == '' ) {
		alert("Please insert desired forum alias"); 
		return false;}	 	
	newForumReg.submit();
}

function valEFR() {	
	if ( existingForumReg.falias.value == '' ) {
		alert("Please insert current forum alias"); 
		return false;}	
	if ( existingForumReg.pwd.value == '' ) {
		alert("Please insert forum password"); 
		return false;}
	existingForumReg.submit();
}

function openOddsCalc() {
  window.open('/tools/pokercalculator.asp','oddscalc','scrollbars=0,height=600,width=961,titlebar=0,outerwidth=0,outerheight=0');
}


function cc()
{
 /* check for a cookie */
  if (document.cookie == "") 
  {
	document.cookie = 'cookiecheck' + escape('nothing')
    /* if a cookie is not found - alert user -
     change cookieexists field value to false */
    alert("COOKIES need to be enabled!");

    /* If the user has Cookies disabled an alert will let him know 
        that cookies need to be enabled to log on.*/ 

    //document.Form1.cookieexists.value ="false"  
  } else {
   /* this sets the value to true and nothing else will happen,
       the user will be able to log on*/
    //document.Form1.cookieexists.value ="true"
	alert("cookie cookie cookie")
  }
}
function runTeaser() {
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="430" height="190">')
	document.write('<param name="movie" value="/images/home/dock.swf">')
	document.write('<param name="quality" value="high">')
	document.write('<param name="wmode" value="transparent">')
	document.write('<embed src="/images/home/dock.swf" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="430" height="190"></embed>')
	document.write('</object>')
}
function runRightBanner(fileName,bannerID,path) {
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="160" height="600" id=ShockwaveFlash1>')
	document.write('<param name="movie" value="/images/banners/' + fileName + '">')
	document.write('<param name="quality" value="high">')
	document.write('<param name="menu" value="false">')
	document.write('<param name="FlashVars" value="' + path + '">')
	document.write('<param name="wmode" value="transparent">')
	document.write('<embed src="/images/banners/' + fileName + '" flashVars="' + path + '" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="160" height="600"></embed>')
	document.write('</object>')
}
function runLeftBanner(fileName,bannerID,path) {
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="205" height="90" id=ShockwaveFlash1>')
	document.write('<param name="movie" value="/images/banners/' + fileName + '">')
	document.write('<param name="quality" value="high">')
	document.write('<param name="menu" value="false">')
	document.write('<param name="FlashVars" value="clickTag=/banneradmin/clickthroughproc.asp?bannerid=' + bannerID +'%26viewedPage=' + path + '">')
	//document.write('<param name="wmode" value="transparent">')
	document.write('<embed src="/images/banners/' + fileName + '" flashVars="clickTag=/banneradmin/clickthroughproc.asp?bannerid=' + bannerID + '%26viewedPage=' + path + '" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="205" height="90"></embed>')
	document.write('</object>')
}
function runTopBanner(fileName,bannerID,path) {
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="468" height="60" id=ShockwaveFlash1>')
	document.write('<param name="movie" value="/images/banners/' + fileName + '">')
	document.write('<param name="quality" value="high">')
	document.write('<param name="menu" value="false">')
	document.write('<param name="FlashVars" value="clickTag=/banneradmin/clickthroughproc.asp?bannerid=' + bannerID +'%26viewedPage=' + path + '">')
	//document.write('<param name="wmode" value="transparent">')
	document.write('<embed src="/images/banners/' + fileName + '" flashVars="clickTag=/banneradmin/clickthroughproc.asp?bannerid=' + bannerID + '%26viewedPage=' + path + '" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="468" height="60"></embed>')
	document.write('</object>')
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
/* Set a cookie to be sure that one exists.
   Note that this is outside the function*/
//document.cookie = 'killme' + escape('nothing')
			
function swapSlide(active,totalSlides) {
 var i = active	
 var z = totalSlides
 var y = 1
 var t
 //var delay = 5500 
 var slide
clearTimeout(t);
 while (y <= z ) 
 {
	 document.getElementById('slide-0' + y).style.display = 'none'
	 document.getElementById('sslnk-0' + y).style.color = ''	 
	 y = y + 1
 } 
 document.getElementById('sslnk-0' + i).style.color = '#990000'		 	
 Effect.Appear('slide-0' + i, { duration: 0.5 })			 
 if (i == z) {
	slide = "swapSlide(1," + z + ")"	
	t=setTimeout(slide,5500);
 } else {
	i = i+1
	slide = "swapSlide(" + i + "," + z + ")"			
	t=setTimeout(slide,5500);
 }			 			 
}

function stopSlide() {
 clearTimeout(t);	
}

