
function displayCasinoQuestions() {
	
	str =   "<div class='frmRow'><label for='the_casinos_you_currently_play_or_hold_accounts_at'>Please select which of the following you currently play or hold accounts at*:</label><div class='wrapRowOne'><input type='checkbox' name='the_casinos_you_currently_play_or_hold_accounts_at[totesport_casino]' value='totesport_casino' /><span class='chkLbl'>Totesport Casino</span><input type='checkbox' name='the_casinos_you_currently_play_or_hold_accounts_at[playboy_gaming]' value='playboy_gaming' /><span class='chkLbl'>Playboy Gaming</span></div><div class='wrapRowTwo'><input type='checkbox' name='the_casinos_you_currently_play_or_hold_accounts_at[intercasino]' value='intercasino' /><span class='chkLbl'>Intercasino</span><input type='checkbox' name='the_casinos_you_currently_play_or_hold_accounts_at[purple_lounge_casino]' value='purple_lounge_casino' /><span class='chkLbl'>Purple-Lounge Casino</span><input type='checkbox' name='the_casinos_you_currently_play_or_hold_accounts_at[other]' value='other' onclick='toggleCasinoTxtArea(this);' /><span class='chkLbl'>Other</span></div><div id='casinoTxtArea'>&nbsp;</div></div>";
    str +=  "<div class='frmRow'><label for='your_favoured_games'>Please list your favoured game(s)*:</label><input type='checkbox' name='your_favoured_games[blackjack]' value='blackjack' /><span class='chkLbl'>Blackjack</span><input type='checkbox' name='your_favoured_games[roulette]' value='roulette' /><span class='chkLbl'>Roulette</span><input type='checkbox' name='your_favoured_games[slots]' value='slots' /><span class='chkLbl'>Slots</span><input type='checkbox' name='your_favoured_games[other]' value='other' onclick='toggleFavouredGamesTxtArea(this);' /><span class='chkLbl'>Other</span><div id='favouredGamesTxtArea'>&nbsp;</div>";
    str +=  "<div class='frmRow'><label for='the_hours_you_spend_a_month_at_online_casinos'>Approximately how many hours do you spend a month at online casinos?*</label><input type='text' name='the_hours_you_spend_a_month_at_online_casinos' value='' class='fld' id='casino_hours' size='3' maxlength='3' /></div>";
	document.getElementById('casinoQuestions').innerHTML = str;
	adjustFrameHeight();
}

function hideCasinoQuestions() {
	str = new String();
	str = document.getElementById('casinoQuestions').innerHTML;
	if(!str.length) return false;
	document.getElementById('casinoQuestions').innerHTML = '';
	adjustFrameHeight();
}

function displayPokerRoomQuestions() {
    str =   "<div class='frmRow'><label for='the_poker_rooms_you_currently_play_or_hold_accounts_at'>Please select which of the following you currently play or hold accounts at*:</label><div class='wrapRowOne'><input type='checkbox' name='the_poker_rooms_you_currently_play_or_hold_accounts_at[playboy_gaming]' value='playboy_gaming' /><span class='chkLbl'>Playboy Gaming</span><input type='checkbox' name='the_poker_rooms_you_currently_play_or_hold_accounts_at[interpoker]' value='interpoker' /><span class='chkLbl'>Interpoker</span></div><div class='wrapRowTwo'><input type='checkbox' name='the_poker_rooms_you_currently_play_or_hold_accounts_at[full_tilt]' value='full_tilt' /><span class='chkLbl'>Full Tilt</span><input type='checkbox' name='the_poker_rooms_you_currently_play_or_hold_accounts_at[purple_lounge_poker]' value='purple_lounge_poker' /><span class='chkLbl'>Purple-Lounge Poker</span><input type='checkbox' name='the_poker_rooms_you_currently_play_or_hold_accounts_at[other]' value='other' onclick='togglePokerRoomTxtArea(this);' /><span class='chkLbl'>Other</span></div><div id='pokerRoomTxtArea'>&nbsp;</div></div>";
    str +=  "<div class='frmRow'><label for='the_types_of_poker_you_play'>Which of the following do you play?*</label><input type='checkbox' name='the_types_of_poker_you_play[cash_games]' value='cash_games' /><span class='chkLbl'>Cash Games</span><input type='checkbox' name='the_types_of_poker_you_play[sngs]' value='sngs' /><span class='chkLbl'>SNGs</span><input type='checkbox' name='the_types_of_poker_you_play[mtts]' value='mtts' /><span class='chkLbl'>MTTs</span></div>";
    str +=  "<div class='frmRow'><label for='the_hours_you_spend_a_month_at_online_poker_rooms'>Approximately how many hours a month do you spend at online poker rooms?*</label><input type='text' name='the_hours_you_spend_a_month_at_online_poker_rooms' value='' class='fld' id='poker_room_hours' size='3' maxlength='3' /></div>";	
    document.getElementById('pokerRoomQuestions').innerHTML = str;
    adjustFrameHeight();
}

function hidePokerRoomQuestions() {
    str = new String();
	str = document.getElementById('pokerRoomQuestions').innerHTML;
	if(!str.length) return false;
	document.getElementById('pokerRoomQuestions').innerHTML = '';	
	adjustFrameHeight();
}

function displayCasinoTxtArea() {
    str =  "<br/><textarea cols='30' rows='3' class='txtArea' name='otherCasinos'  id='otherCasinos' onfocus='onFocus(this.id)'>Please specify</textarea>";
    document.getElementById('casinoTxtArea').innerHTML = str;
}

function hideCasinoTxtArea() {
    str = new String();
	str = document.getElementById('casinoTxtArea').innerHTML;
	if(!str.length) return false;
	document.getElementById('casinoTxtArea').innerHTML = '';
}

function toggleCasinoTxtArea(chkBox) {
    if(chkBox.checked == true) displayCasinoTxtArea();
	else hideCasinoTxtArea();
	adjustFrameHeight();
}

function displayPokerRoomTxtArea() {
    str =  "<br/><textarea cols='30' rows='3' class='txtArea' name='otherPokerRooms'  id='otherPokerRooms' onfocus='onFocus(this.id)'>Please specify</textarea>";
    document.getElementById('pokerRoomTxtArea').innerHTML = str;
}

function hidePokerRoomTxtArea() {
    str = new String();
	str = document.getElementById('pokerRoomTxtArea').innerHTML;
	if(!str.length) return false;
	document.getElementById('pokerRoomTxtArea').innerHTML = '';
}

function togglePokerRoomTxtArea(chkBox) {
    if(chkBox.checked == true) displayPokerRoomTxtArea();
	else hidePokerRoomTxtArea();
	adjustFrameHeight();
}

function displayFavouredGamesTxtArea() {
    str =  "<br/><textarea cols='30' rows='3' class='txtArea' name='otherGames' id='otherGames' onfocus='onFocus(this.id)'>Please specify</textarea>";
    document.getElementById('favouredGamesTxtArea').innerHTML = str;
}

function hideFavouredGamesTxtArea() {
    str = new String();
	str = document.getElementById('favouredGamesTxtArea').innerHTML;
	if(!str.length) return false;
	document.getElementById('favouredGamesTxtArea').innerHTML = '';
}

function toggleFavouredGamesTxtArea(chkBox) {
    if(chkBox.checked == true) displayFavouredGamesTxtArea();
	else hideFavouredGamesTxtArea();
	adjustFrameHeight();
}

function onFocus(e) {
    if(document.getElementById(e).innerHTML == 'Please specify')
	    document.getElementById(e).innerHTML = '';
}
