//----------------------------------------------------------// Optin imbedded check box code// (C) 2001 ZMedia Inc.// All Rights Reserved//----------------------------------------------------------function MakeOneColumnList(ref,numBoxes, backColor, borderSize, borderColor, textColor, boxcolor,width,email){	document.writeln("<CENTER><table bordercolor=\""+borderColor+"\" cellspacing=\"0\" cellpadding=\"5\" border=\""+borderSize+"\" width=\""+width+"\">");    document.writeln("<tr bgcolor=\""+backColor+"\">");    document.writeln("<td><center>");    MakeOptinList(ref,numBoxes,"%23FFFF99","../../pops/banner3.gif",true,true,1,textColor,boxcolor,email);    document.writeln("</center></td></tr></table></CENTER>");	return(true);}function MakeTwoColumnList(ref,numBoxes, backColor, borderSize, borderColor, textColor, boxcolor,width,email){	document.writeln("<CENTER><table bordercolor=\""+borderColor+"\" cellspacing=\"0\" cellpadding=\"5\" border=\""+borderSize+"\" width=\""+width+"\">");    document.writeln("<tr bgcolor=\""+backColor+"\">");    document.writeln("<td>");    MakeOptinList(ref,numBoxes,"%23FFFF99","../../pops/banner3.gif",true,true,2,textColor,boxcolor,email);    document.writeln("</td></tr></table></CENTER>");	return(true);}function MakeThreeColumnList(ref,numBoxes, backColor, borderSize, borderColor, textColor, boxcolor,width,email){	document.writeln("<CENTER><table bordercolor=\""+borderColor+"\" cellspacing=\"0\" cellpadding=\"5\" border=\""+borderSize+"\" width=\""+width+"\">");    document.writeln("<tr bgcolor=\""+backColor+"\">");    document.writeln("<td>");    MakeOptinList(ref,numBoxes,"%23FFFF99","../../pops/banner3.gif",true,true,3,textColor,boxcolor,email);    document.writeln("</td></tr></table></CENTER>");	return(true);}function EasyTwoColumnList(ref,width,borderSize,email){	EasyList(ref,width,2,borderSize,email);}function EasyThreeColumnList(ref,width,borderSize,email){	EasyList(ref,width,3,borderSize,email);}function EasyOneColumnList(ref,width,borderSize,email){	EasyList(ref,width,1,borderSize,email);}function EasyList(ref,width,columns,borderSize,email){	var borderColor="black";	var backColor="white";	var numBoxes=20;	var textColor="black";	var boxcolor="black";	document.writeln("<CENTER><table bordercolor=\""+borderColor+"\" cellspacing=\"0\" cellpadding=\"5\" border=\""+borderSize+"\" width=\""+width+"\">");    document.writeln("<tr bgcolor=\""+backColor+"\">");    document.writeln("<td>");    MakeOptinList(ref,numBoxes,"%23FFFF99","../../pops/banner3.gif",true,true,columns,textColor,boxcolor,email);    document.writeln("</td></tr></table></CENTER>");}function MakeOptinList(ref,numBoxes,backcolor,imageName, suppressLink, showTag, columns,textColor,boxColor,emailIn) {	var box = GetOptInData();	var email="";	var numCols=1;	if (emailIn != null && emailIn != "")	{		email=emailIn;	}	if (columns>0&&columns<4)	{		numCols=columns;	}	    var boxCount=box.length;	numBoxes*=3;	if (numBoxes<boxCount)	{		boxCount=numBoxes;	}	document.writeln("<form name=\"ZM_optinbox\"  OnSubmit=return(openWin(\""+		ref+"\",\""+backcolor+"\",\""+imageName+"\")); method=\"GET\">");	document.writeln("<INPUT TYPE=\"hidden\" NAME=\"ZM_background\" VALUE=\"#FFFF99\">");	document.writeln("<INPUT TYPE=\"hidden\" NAME=\"ZM_magename\" VALUE=\"/pops/banner3.gif\">");	if (showTag==true)	{	  document.writeln("<div align=\"center\"><b><font color=\""+textColor+"\" face= verdana arial>This Model features:</font></b></div><br>");	}	document.writeln("<table width=\"100%\"><font color=\""+textColor+"\" face= verdana arial size=2>");	var currCol=0;	var box1=(100-(boxCount*5))/boxCount;	for (var i = 0; i<boxCount; i+=3) {	    	    if ((currCol%numCols)==0)	    {			document.writeln("<tr>");	    }		document.writeln("<td width=\"5%\"><input NAME=\"ZM_request\" value=\""+box[i]+"\" type=\"checkbox\" "+box[i+2]+"></td><td width=\""+box1+"%\"><font color=\""+boxColor+"\" face= verdana arial size=2>"+box[i+1]+"</font><br></td>");		currCol++;		if ((currCol%numCols)==0)	    {			document.writeln("</tr>");	    }	}	document.writeln("</table>");	document.writeln("<br>");	document.writeln("<div align=\"center\"><b>My email address is:</b>");	document.writeln("<input name=\"ZM_email\" type=\"textbox\" value=\""+email+"\"size=\"15\">");	if (numCols>1)	{		document.writeln("&nbsp;");	}	else	{		document.writeln("<br><br>");	}	document.writeln("<input name=\"ZM_submit\" type=\"submit\" value=\"Submit\"></div>");	document.writeln("</form></font>	");	if (suppressLink==false)	{		document.writeln("<font color=\""+textColor+"\" face=\"verdana arial\" size=\"2\"><center>");		document.writeln("Brought to you by infowave at <a href=\"http://www.zipso.com/\">www.zipso.com</a></font>");	}	var temp_image = new Image;	temp_image.src = 'http://popup.zmedia.com/impression?ref='+ref;}function logImpression(ref){	var count;	var reqstring = '';	for (count=0; count < document.ZM_optinbox.ZM_request.length; count++)	{		reqstring += '&request='+document.ZM_optinbox.ZM_request[count].value;	}	var temp_image = new Image;	temp_image.src = 'http://popup.zmedia.com/impression?ref='+ref+reqstring;}function openWin(ref,backcolor,imageName){	var joinString="";	for (var i = 0; i<document.ZM_optinbox.ZM_request.length; i++)	{		if (document.ZM_optinbox.ZM_request[i].checked==true)		{			joinString = joinString + "&request=" + document.ZM_optinbox.ZM_request[i].value;		}	}	if (imageName=="")	{		imageName="pops/banner3.gif";	}    if (backcolor=="")	{		backcolor="%23FFFF99";	}	win=window.open("http://www.zmedia.com/warp/subs/popvfy?v=blue1&background="+ backcolor 			+"&imagename="+imageName+"&ref="+ref+"&email="			+ document.ZM_optinbox.ZM_email.value + joinString,'zmedia','width=530,height=390');    if (!win.opener) 		{ win.opener=self; }	return false;}function popupWin(){	var ref=document.ZM_optinbox.ZM_ref.value;	return(openWin(ref,"%23FFFF99","../../pops/banner3.gif"));}function MakeStdOptIn(numBoxes,hideLink){	MakeOptinList("135178",numBoxes,"%23FFFF99","../../pops/banner3.gif",hideLink,true,1,"black","black");	return(true);}//<!-- Copyright 1999-2000 Z Media, Inc. ALL RIGHTS RESERVED. -->
