// JavaScript Document Prints out the E-mail Mag form
//03/02/2007 
 var mag_colors=new Array();
    mag_colors['XCU']='#FFFFFF:#00cc00'; // CumShoot Mag
	mag_colors['XAM']='#003399:#ffffcb'; // Amateur Mag
	mag_colors['XHA']='#FFFFFF:#660000'; // Hardcore Mag
	mag_colors['XAS']='#FFFFFF:#6699ff'; // Asian Gallery 
	mag_colors['XBX']='#FFFFFF:#000000'; // Black Galery 
	mag_colors['XBI']='#FFFFFF:#000000'; // Boobies
	mag_colors['XTE']='#FFFFFF:#ff00ff'; // Teen Mag
	mag_colors['XLA']='#FFFFFF:#000000'; // Latina Mag
	mag_colors['XLE']='#FFFFFF:#000000'; // Lesbian Mag
	mag_colors['XSH']='#FFFFFF:#000000'; // Shemale Tranny Mag 
	mag_colors['XGA']='#003399:#c6c6c6'; // Gay Mag        no images 
	mag_colors['XST']='#000000:#ccffff'; // Stockings Mag 
	mag_colors['XBM']='#000000:#c6c6c6'; // BdsmExtreme Mag  no images 
	mag_colors['XIN']='#000000:#c6c6c6'; // Inter racial 
	

function checkit(email)
{
	if (email.value.length>6 && email.value.indexOf('@') >1)
	return true;
	else
 {
 alert('Email entered is not a valid address');
  return false;
 }
}

function show_mail(code,style) {
    scode=code.toLowerCase();
	fcolor='#000000';
	bcolor='#FFFFFF';

	if(typeof(mag_colors[code]))
	{
	 colors=mag_colors[code].split(":");
	 fcolor=colors[0];
	 bcolor=colors[1];
	}
    document.write("<div id='newmailer' align='center'>"+
"<form action='http://www.teen-mail.com/cgi-bin/sendMailer.cgi'  method='post'"+ 
"onsubmit='return checkit(this.email)' style='margin:0; padding:0; display:inline;'>"+
"<input type=hidden name=stage value='1'>"+
"<input type=hidden name=raw value='1'>"+
"<input type=hidden name=act value='876022'>"+
"<input type=hidden name=comp value='VMIx'>"+
"<input type=hidden name=letter value='L'>"+
"<input type=hidden name=mailer value='"+code+"'>"+
"<input type=hidden name=errBgColor value='#003399'>"+
"<input type=hidden name=errFgColor value='#ffffff'>"+
"<input type=hidden name=skipPass value=1>"+
"<table border='0' cellpadding='0' cellspacing='0'><tr><td colspan='2'>"+
"<img src='http://image.cecash.com/tm4f/b/free/panels/new/"+scode+"_"+style+"_01.gif' alt='' width='600' height='39'"+ "border='0'><br>"+
"<img src='http://image.cecash.com/tm4f/b/free/panels/new/"+scode+"_"+style+"_02.gif' alt='' width='30' height='80'"+ "border='0'>"+
"<img src='http://image.cecash.com/tm4f/b/free/panels/new/"+scode+"_"+style+"_03.gif' alt='' width='540' height='80'"+ "border='0'>"+
"<img src='http://image.cecash.com/tm4f/b/free/panels/new/"+scode+"_"+style+"_04.gif' alt='' width='30' height='80'"+ "border='0'></td></tr><tr>"+
"<td style='background-image:url(\"http://image.cecash.com/tm4f/b/free/panels/new/"+scode+"_"+style+"_05.gif\");"+ 
"background-repeat:no-repeat; width:317px; height:40px;' valign='bottom' align='left'>"+
"<input type='text' value='Enter Email Here' onFocus=\"if (this.value=='Enter Email Here') this.value=''\" name='email' "+
"style='width:248px; height:16px; border:none; margin:22px 0 0 55px; padding:none; background:transparent; font-size:12px;'>"+
"</td><td>"+
"<input type='image' src='http://image.cecash.com/tm4f/b/free/panels/new/"+scode+"_"+style+"_06.gif' value='Join'"+ 
"name='submit' style='width:283px; height:40px;'>"+
"</td></tr><tr>"+
"<td colspan='2'><img src='http://image.cecash.com/tm4f/b/free/panels/new/"+scode+"_"+style+"_07.gif' alt='' "+
"width='600' height='49' border='0'>"+
"</td></tr></table>"+
"</form>"+
"</div>");
}
