var TICM_nameLabels   = ["enter full name"   ,"**Full Name**"   ,"fullName"  ];
var imagePath = "http://i.timeinc.net/subs2/images/pa";

function TICM_checkNm(f){
	fullNameStr = f.fullName.value;			
	if ((fullNameStr == null) || (fullNameStr.search(/[A-Za-z]\s[A-Za-z]/) == -1) || (fullNameStr == "") || TICM_nameLabels.contains(fullNameStr) || (isblank(fullNameStr))) {
		alert("Please enter your full name");		
		f.fullName.value  = TICM_nameLabels[1]; 
		return false;
	}
	return true;
}

function TICM_submit(f){
	if(TICM_checkNm(f)){
		var newWin = window.open("", "newWin", "width=600 ,height=520,top=2,left=2,scrollbars=yes,status=yes,resizable=yes");
		f.target = "newWin";
		return true;
	}
	return false;
}

function TICM_arrayContains(str){
	for (var i = 0; i < this.length; i++){
		if (this[i] == str) return true;
	}
	return false;
}
Array.prototype.contains = TICM_arrayContains;

function isblank(s){
	for(var i = 0; i < s.length; i++){
		var c = s.charAt(i);
		if ((c != ' ') && (c != '\n') && (c != '\t')) return false;
	}
return true;
}

function clearFld(fi,la){
	if(la.contains(fi.form[la[2]].value))fi.form[la[2]].value = "";
}

function resetFld(fi,la){
	if(fi.form[la[2]].value == "")fi.form[la[2]].value = la[0];
}

var ofieBody = '<table width="171" border="0" cellpadding="0" cellspacing="0">'+
'<form method="post" action="http://subs.timeinc.net/CampaignHandler/parent_nb?source_id=47" onsubmit="return TICM_submit(this);">'+
'<tr>'+
'<td><img src="'+imagePath+'/pa_partOfie0406_01.gif" width="171" height="45" border="0" alt="Try Parenting Free!" /></td>'+
'</tr>'+
'<tr>'+
'<td  style="background-image: url('+imagePath+'/pa_partOfie0406_03.gif); background-repeat: no-repeat"height="32"><table width="90%" border="0" align="center" cellpadding="2" cellspacing="0">'+
'<tr valign="middle" align="center">'+
'<td><input type="text" size="15" name="'+TICM_nameLabels[2]+'" value="'+TICM_nameLabels[0]+'" onfocus="clearFld(this,TICM_nameLabels);" onblur="resetFld(this,TICM_nameLabels);" maxlength="30" style="font-family: Verdana, Arial, Helvetica, sans-serif; border:1px solid #CC9933; font-size:11px; color:#000000; padding:1px; background-color:#FFFFFF;width:102px;" />'+
'</td>'+
'<td><input type="image" src="'+imagePath+'/pa_partOfie0406_02.gif" width="26" height="20" alt="GO" border="0" /></td>'+
'</tr>'+
'</table></td>'+
'</tr>'+
'</form>'+
'</table>'
document.write(ofieBody);

//<!--CLD live=04-19-06-13:43 stage=04-18-06-18:11 -->
