// JavaScript Document Prints out the E-mail Mag form
// contains functions:
// checkit(email)
// show_mail(code)
// mag_colors array
//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) {
     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("<table width=400 border=0 cellspacing=0 cellpadding=0 align=center><tr>"+
      "<form method=post action='http://www.teen-mail.com/cgi-bin/sendMailer.cgi'"+
       "onsubmit='return checkit(this.email)'>"+
      "<td width=400 height=100>"+
      "<table width=400 border=0 cellspacing=0 cellpadding=0 bgcolor='"+bcolor+"' align=center><tr>"+
      "<td colspan=2 width=400 height=50 valign=bottom>"+
      "<img src='http://image.amateurbitch.com/tm4f/b/free/panels/xmag_"+scode+"01a.jpg'"+
      "width=400 height=50 alt='free sex pictures, erotic stories, jokes, adult cartoons, sex mosaics and more'>"+
      "</td></tr>"+
      "<tr bgcolor='"+bcolor+"'>"+
      "<td width=80 height=50 align=center valign='top'>"+
      "<img src='http://image.amateurbitch.com/tm4f/b/free/panels/xmag_"+scode+"01b.jpg'"+
      "width=80 height=50 alt='Enter E-mail Address Here'></td>"+
      "<td width=320 height=50 align=right>"+
      "<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>"+
      "<span style='font-family: arial, verdana; font-size: 10pt; color:"+fcolor+"'><b>E-Mail Address: </b></span>"+
      "<input name=email size=25 maxlength=40 value='Enter Email Here' onFocus=\"if (this.value=='Enter Email Here') this.value=''\">"+
      "<input type=submit value='Join' name='submit'>"+
      "</td></tr></table></td></form></table>");
}
