<!--<CACHEEXPIRY>12/9/2009 11:56:26 AM</CACHEEXPIRY> -->
var Co_Translations = {};
Co_Translations.PageDirection = "ltr";
Co_Translations.LeftAlign = "Left";
Co_Translations.RightAlign = "Right";
Co_Translations.LikeWhatYouveRead = 'Like What You\'ve Read?';
Co_Translations.Subject = 'Subject';
Co_Translations.CharactersRemaining = 'Characters Remaining';
Co_Translations.Name = 'Name';
Co_Translations.DisplayNameAsAnonymous = 'Display my name as anonymous.';
Co_Translations.Email = 'Email';
Co_Translations.Phone = 'Phone';
Co_Translations.City = 'City';
Co_Translations.Submit = 'Submit';
Co_Translations.SubmitComment = 'Submit Comment';
Co_Translations.StateCountry = 'State/Country';
Co_Translations.IndicatesRequiredField = '* indicates a required field';
Co_Translations.PostingGuidlines = 'Posting Guidelines';
Co_Translations.PleaseContactMeForMoreInfo = 'Please have someone contact me for more information';
Co_Translations.WeWillNotDisplayYourEmailAddress = 'We will not display your email address online.';
Co_Translations.AllowMyCommentToBePublic = 'Allow my comments to be publicly read.';
Co_Translations.KeepMyMessagePrivate = 'Keep my message private for Jay\'s family only.';
Co_Translations.DoNotPublishThisMessage = 'Please do not publish this message.';
Co_Translations.YouMayPublishMyExperience = 'You may publish my experience online.';
Co_Translations.PleaseEmailMeWhenNewCommentsArePosted = 'Please email me when new comments are posted';
function doCommentPromo(P_Partner_link, AID)
{
	doCommentFormHeader();
	document.write('<table border="0" align="center" dir="ltr" cellpadding="0" cellspacing="0">');
	document.write('<tr valign="top"><td width="50%" class="credits" align="Left">');
	document.write('<span class="style2" style="color:#3584E3;"><strong>Like What You\'ve Read?</strong></span><br>');
	document.write(('<a href="https://www.mychabad.org/tools/donate/donateonline.asp?sc=' + AID + '&site=<<site>>" target="_blank">Click here</a> for ways to help expand our great Jewish content and useful tools.').replace(/<<site>>/gi, Request.server_name().replace(/www\./gi, '')));
	document.write('<br><div align="center" style="padding-top:4px;"><a target="_blank" href="https://www.mychabad.org/tools/donate/donateonline.asp?AID=161548&sc=' + AID + '&site=' + Request.server_name().replace(/www\./gi, '') + '"><img src="/images/new/tools/but_donate.gif" width="65" height="15" alt="Donate" border="0"></a></div>');
	document.write('</td>');
	document.write('<td>&nbsp;</td><td width="50%" class="credits" align="Left"><strong><span class="style2" style="color:#3584E3;">Chabad.org &ndash; Delivered</span></strong>');
	document.write('<div id="CommentsSubscribe_subscribe_loader" class="subscribe_loader_hidden">&nbsp;</div>');
	document.write('<div id="CommentsSubscribe_subscribe_message" class="subscribe_loader_hidden"></div>');
	document.write('<div id="CommentsSubscribe_subscribe_container" class="subscribe_container">Subscribe to our weekly lists:');
	document.write('<form name="CommentsSubscribe" method="post" style="margin:0px;">');
	document.write('<input type="hidden" name="CommentsSubscribe_p" value="' + P_Partner_link + '">');
	document.write('<input type="hidden" name="CommentsSubscribe_subid" value="1">');
	document.write('<input name="CommentsSubscribe_email" value="Email Address" onfocus="if (this.value == \'Email Address\') {this.value = \'\';}"  onblur="if (this.value == \'\') {this.value = \'Email Address\';}" type="text" class="commentsformInput" style="width:170px;">');
	document.write('<div align="center"><a href="javascript:;" onclick="submitForm(\'CommentsSubscribe\', \'trans\', \'readercomment_\');"><img src="/images/new/tools/but_subscribe.gif" width="65" height="15" align="absmiddle" alt="Subscribe" border="0" id=image1 name=image1></a></div>');
	document.write('</div>');
	document.write('</td>');
	document.write('</tr></form></table>');
	doCommentFormFooter();
	init_submit_form('CommentsSubscribe','trans','readercomment_','Please enter a valid email address.','Loading...');
}
function DoOptin()
{
	document.write('<tr><td colspan="2"><div style="font-size:12px;"><input type="hidden" name="optinint" value="81"><TABLE cellpadding="0" cellspacing="0" border="0" class="h4"><tr><td valign="top"><input type="checkbox" value="true" name="OptIn" checked></td><td  style="padding-left:3px;"><font color="gray"> Please allow me to receive Chabad.org and Jewish Educational Media\'s periodic emails announcing new site features and the like.<div style="margin-top:3px;">Your email address will not be shared with any third parties.</div></font></td></tr></table></div></td></tr>');
}
function doCommentFormHeader()
{
	document.write('<table border="0" align="center" cellpadding="0" cellspacing="0" dir="ltr"><tr><td><table class="commentForm" border="0" align="center" cellpadding="0" cellspacing="0">');
	document.write('<tr>');
	document.write('<td width="8" height="9" align="left" valign="top"><img src="/images/new/feedbackTL.gif" width="8" height="9"></td>');
	document.write('<td width="100%" height="9" background="/images/new/feedbackT.jpg" style="background-repeat: repeat-x; "></td>');
	document.write('<td width="8" height="9" align="right" valign="top"><img src="/images/new/feedbackTR.gif" width="8" height="9"></td>');
	document.write('</tr><tr>');
	document.write('<td width="8" background="/images/new/feedbackL.jpg" style="background-repeat:repeat-y; "></td>');
	document.write('<td width="100%" valign="top" background="/images/new/feedbackBG.jpg" style="padding-left:3px; padding-right:3px;">');
}
function doCommentFormFooter()
{
	document.write('<td width="8" align="right" valign="top"  background="/images/new/feedbackR.jpg" style="background-repeat:repeat-y; ">&nbsp;</td>');
	document.write('</tr><tr>');
	document.write('<td width="8" height="9" valign="top"><img src="/images/new/feedbackBL.gif" width="8" height="9"></td>');
	document.write('<td width="100%" height="9" background="/images/new/feedbackB.jpg" style="background-repeat: repeat-x;"></td>');
	document.write('<td width="8" height="9" align="right" valign="top"><img src="/images/new/feedbackBR.gif" width="8" height="9"></td>');
	document.write('</tr></table></td></tr></table>');
}
function Do_Comment_Form(default_values, no_design, rf_verb, rf_textbox)
{
	var max_length = 1000;
	var include_phone = false;
	var show_call_option = false;
	var privacy_popup = true;
	var script_name = Request.script_name();
	var query_string = Request.Querystring();

	document.writeln('<form style="margin-top:0px;" name="feedbackForm" method="post" action="' + script_name + query_string + '&1=1#comment">');
	document.writeln('<table cellSpacing=2 cellPadding=0 align=center border=0 dir="' + Co_Translations.PageDirection + '" id="co_comments_form">');
	if (!no_design)
	{
		document.writeln('<tr>');
		document.writeln('<td colspan="2">');
		document.writeln('<span class="commentsFormHeader">' + rf_verb + '</span></td>');
		document.writeln('</tr>');
	}

	
	document.writeln('<tr>');
	document.writeln('<td colspan="2" height="4"></td>');
	document.writeln('</tr>');
	
	document.writeln('<tr>');
	document.writeln('<td class="credits" vAlign="top" noWrap align="' + Co_Translations.RightAlign + '"><b>' + Co_Translations.Subject + ':</b></td>');
	document.writeln('<td class="credits"><input class="commentsformInput" style="width: 235px;" name="subject2" type="text" class="formbox" id="subject22" size="51" maxlength="50" value="' + default_values.subject + '"></td>');
	document.writeln('</tr>');
	
	document.writeln('<tr>');
	document.writeln('<td class="credits" vAlign="top" align="' + Co_Translations.RightAlign + '"><b>' + rf_textbox + ':</b></td>');
	document.writeln('<td class="credits"><textarea class="commentsformInput" style="width: 235px;height:130px;" name="textarea2"' + (max_length > 0 ? ' onkeyup="textCounter(this,document.getElementById(\'counterCell\'),' + max_length +');"' : '') + '>' + default_values.message + '</textarea>');
	if (max_length > 0)
	{
		document.writeln('<br />&nbsp;&nbsp;<span id="counterCell">' + max_length + '</span>&nbsp;' + Co_Translations.CharactersRemaining);
	}
	document.writeln('</td>');
	document.writeln('</tr>');
	
	document.writeln('<tr>');
	document.writeln('<td colspan="2" height="8"></td>');
	document.writeln('</tr>');

	document.writeln('<tr>');
	document.writeln('<td class="credits"width="25%" align="' + Co_Translations.RightAlign + '"><b>' + Co_Translations.Name + '*:</b></td>');
	document.writeln('<td width="295"><input class="commentsformInput" style="width: 235px;" required name="name2" type="text" class="formbox" id="name22" size="51" maxlength="50" value="' + (default_values.full_name != '' ? default_values.full_name : '') + '"></td>');
	document.writeln('</tr>');
	
	document.writeln('<tr>');
	document.writeln('<td align="' + Co_Translations.RightAlign + '"></td>');
	document.writeln('<td class="credits" style="font-size: 10px" vAlign="center" width="295" valign="top"><input id="checkbox2" type="checkbox" value="1" name="checkbox2"' + (default_values.anonymous == '1' ? ' checked' : '') + '> <label for="checkbox2">' + Co_Translations.DisplayNameAsAnonymous + '</label></td>');
	document.writeln('</tr>');
	
	document.writeln('<tr>');
	document.writeln('<td class="credits" align="' + Co_Translations.RightAlign + '"><b>' + Co_Translations.Email + '*:</b></td>');
	document.writeln('<td width="295"><input class="commentsformInput" style="WIDTH: 235px" name="middlename" required value="' + (default_values.email != '' ? default_values.email : '') + '"><input type="hidden" name="email2" value=""/></td>');
	document.writeln('</tr>');
	
	if (include_phone)
	{
		document.writeln('<tr>');
		document.writeln('<td class="credits" align="' + Co_Translations.RightAlign + '"><b>' + Co_Translations.Phone + ':</b></td>');
		document.writeln('<td><input type="text" name="phone" class="commentsformInput" style="width=100px;" size="20"></td>');
		document.writeln('</tr>');
		if (show_call_option)
		{
			document.writeln('<tr>');
			document.writeln('<td></td>');
			document.writeln('<td class="credits"><input type="checkbox" name="CallMe" id="call_me" value="ON"><label for="call_me">' + Co_Translations.PleaseContactMeForMoreInfo + '</label></td>');
			document.writeln('</tr>');
		}
	}
	
	document.writeln('<tr>');
	document.writeln('<td class="credits" align="' + Co_Translations.RightAlign + '"><b>' + Co_Translations.City + '*:</b></td>');
	document.writeln('<td class="credits"><input class="commentsformInput" style="WIDTH: 80px" name="city2" id="city22" value="' + default_values.city + '"> &nbsp; <b>' + Co_Translations.StateCountry + ':</b><input class="commentsformInput" style="WIDTH: 64px" name="state2" id="state22" value="' + default_values.state + '"></td>');
	document.writeln('</tr>');
	
	document.writeln('<tr>');
	document.writeln('<td colspan="2" height="2"><img height="2" border="0" width="1" src="/images/global/spacer.gif"></td>');
	document.writeln('</tr>');
	
	document.writeln('<tr>');
	document.writeln('<td></td>');
	document.writeln('<td class="credits" valign="top">' + Co_Translations.IndicatesRequiredField + '<br>');
	if (privacy_popup)
	{
		document.writeln('<div style="FONT-SIZE: 10px; TEXT-ALIGN: ' + Co_Translations.RightAlign + '"><a onclick="window.open(\'/global/popup/default.asp?imagename=/Images/Global/small-top.gif&amp;aid=114560\',\'schroeder98\',\'width=500,height=500,resizable,status=no,scrollbars=yes\'); return false;" href="javascript:void(0)">' + Co_Translations.PostingGuidlines + '</a></div>');
	}
	else
	{
		document.writeln('<br>' + Co_Translations.WeWillNotDisplayYourEmailAddress);
	}
	document.writeln('</td>');
	document.writeln('</tr>');
					
	document.writeln('<tr>');
	document.writeln('<td colspan="2" class="credits" valign="top" align="center"><input type="checkbox" value="true" id="chk_subscribe" checked name="CommentSubscribe"> <label for="chk_subscribe">' + Co_Translations.PleaseEmailMeWhenNewCommentsArePosted + '</label></td>');
	document.writeln('</tr>');
	
	document.writeln('<tr align="middle">');
	document.writeln('<td class="credits" align="center" style="PADDING-TOP: 7px" vAlign="top" colSpan="2"><input type="image" onmouseover="MM_swapImage(\'commentSubmit\',\'\',\'/images/new/commentSubmitover.gif\',1)" onmouseout="MM_swapImgRestore()" height="17" alt="' + Co_Translations.Submit + '" title="' + Co_Translations.SubmitComment + '" onclick="return validateForm(this.form);" src="/images/new/commentSubmit.gif" width="78" border="0"	name="commentSubmit" id="commentSubmit"></a></td>');
	document.writeln('</tr>');
		DoOptin();
	document.writeln('</table>');
	document.writeln('<input type="hidden" name="submitted" value="true"><input type="hidden" name="formName" value="feedbackForm">');
	document.writeln('</form>');
}
