function FixSize(){
 var x = document.pic.width + 32;
 var y = document.pic.height + 41;
 window.resizeTo(x,y);
}

function showPop(u,w,h){ mywin = window.open(u,"pop",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=810,height=610'); }

function submitForm( form )
{
	if( form.name.value == '' ) { alert("You must enter a name."); form.name.focus(); return false; }
	if( form.email.value == '' ) { alert("You must enter an email"); form.email.focus(); return false; }
	
	if( form.email.value != '' )
	{
		email = form.email.value;
		at = email.indexOf("@");
		dot = email.indexOf(".");
		errmsg = "";
	
		if (email == "") {
			errmsg = "Please enter emailadress.\n";
		}else if(at < 1 | dot < 1){
			errmsg = "The entered emailadress not valid.\n";
		}
	
		if (errmsg != "") {
			alert(errmsg);
			return false;
		}
	}
	form.submit();
}


function printit()
{
	if(window.print)
	{
		window.print();
	}
	else
	{
		var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
		document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
		WebBrowser1.ExecWB(6, 2);
		//Use a 1 vs. a 2 for a prompting dialog box WebBrowser1.outerHTML = "";
	}
}

function switcheroo( pageId )
{
	var linkList = document.getElementsByTagName('a');
	for( var i = 0; i < linkList.length; i++ )
	{
		if( linkList[i].className.indexOf( 'mansion-poker' ) != -1 )
		{
			linkList[i].href ='/goto/mansion-poker_a' + pageId + '.htm?lid=mansion-poker';
		}
		if( linkList[i].className.indexOf( 'poker-stars' ) != -1 )
		{
			linkList[i].href ='/goto/poker-stars_a' + pageId + '.htm?lid=poker-stars';
		}		
		if( linkList[i].className.indexOf( 'absolute-poker' ) != -1 )
		{
			linkList[i].href ='/goto/absolute-poker_a' + pageId + '.htm?lid=absolute-poker';
		}		
		if( linkList[i].className.indexOf( 'paradise-poker' ) != -1 )
		{
			linkList[i].href ='/goto/paradise-poker_a' + pageId + '.htm?lid=paradise-poker';
		}		
		if( linkList[i].className.indexOf( 'pacific-poker' ) != -1 )
		{
			linkList[i].href ='/goto/pacific-poker_a' + pageId + '.htm?lid=pacific-poker';
		}		
		if( linkList[i].className.indexOf( 'titan-poker' ) != -1 )
		{
			linkList[i].href ='/goto/titan-poker_a' + pageId + '.htm?lid=titan-poker';
		}		
		if( linkList[i].className.indexOf( 'party-poker' ) != -1 )
		{
			linkList[i].href ='/goto/party-poker_a' + pageId + '.htm?lid=party-poker';
		}		
		if( linkList[i].className.indexOf('hollywoodpoker') != -1 )
		{
			linkList[i].href ='/goto/hollywoodpoker_a' + pageId + '.htm?lid=hollywoodpoker';
		}		
		if( linkList[i].className.indexOf( 'empire-poker' ) != -1 )
		{
			linkList[i].href ='/goto/empire-poker_a' + pageId + '.htm?lid=empire-poker';
		}		
		if( linkList[i].className.indexOf( 'pokerroom' ) != -1 )
		{
			linkList[i].href ='/goto/pokerroom_a' + pageId + '.htm?lid=pokerroom';
		}		
		if( linkList[i].className.indexOf( 'bodog-poker' ) != -1 )
		{
			linkList[i].href ='/goto/bodog-poker_a' + pageId + '.htm?lid=bodog-poker';
		}		
		if( linkList[i].className.indexOf( 'doyles-room' ) != -1 )
		{
			linkList[i].href ='/goto/doyles-room_a' + pageId + '.htm?lid=doyles-room';
		}		
		if( linkList[i].className.indexOf( 'ultimate-bet' ) != -1 )
		{
			linkList[i].href ='/goto/ultimate-bet_a' + pageId + '.htm?lid=ultimate-bet';
		}		
		if( linkList[i].className.indexOf( 'full-tilt-poker' ) != -1 )
		{
			linkList[i].href ='/goto/full-tilt-poker_a' + pageId + '.htm?lid=full-tilt-poker';
		}
	}
}