NAME = Password Protected Link

CAN_EDIT_STYLE = 1
CAN_EDIT_LINK = 1
NAME_IS_PASSWORD = 1

BEGIN_BODY_ONLOAD

	<div id="[$DEF_name]Div" style="display: block;
	[$STYLE_background-color]
	[$STYLE_height]
	[$STYLE_width]
	[$STYLE_margin]
	[$STYLE_position_element]
	[$STYLE_border]
	[$STYLE_border-top]
	[$STYLE_border-bottom]
	[$STYLE_border-left]
	[$STYLE_border-right]
	[$STYLE_transform]
	min-height: 10px;
	overflow: hidden;
	">

		<span id="[$DEF_name]Span" style="
		">

			<form name="[$DEF_name]Form" action="#" onsubmit="[$DEF_name]CheckInput(); return false" style="
			[$STYLE_position_content]
			">
				<input name = "[$DEF_name]Pwd" type="password" size="16" style="
				[$STYLE_width]
				[$STYLE_height]
				">
			</form>

		</span>

	</div>

END_BODY_ONLOAD

BEGIN_ONLOAD
END_ONLOAD

BEGIN_DEFINITION

	function [$DEF_name]CheckInput()
	{
		// can be put above the input field for feedback
		// <textarea cols="9" rows="1" name="[$DEF_name]Prompt">Password:</textarea><br>
		
		var pwd = document.forms['[$DEF_name]Form'].elements['[$DEF_name]Pwd'];
		
		if (pwd.value == "[$DEF_linkName]")
		{
			//window.location='[$DEF_linkURL]'; 		// this adds it to the browser history
			window.location.replace('[$DEF_linkURL]'); 	// this keeps it out of the browser history

			//document.forms['[$DEF_name]Form'].[$DEF_name]Prompt.value = "OK!";
		}
		else
		{
			//document.forms['[$DEF_name]Form'].[$DEF_name]Prompt.value = "Sorry";
			//gDoReload = 1;
		}
	}

END_DEFINITION

BEGIN_DEF

	DEF_name = 
	DEF_format = 
	DEF_linkURL = http://iFuntastic.com
	DEF_linkName = iFuntastic
	
END_DEF

BEGIN_STYLE

	STYLE_height = auto;
	STYLE_width = auto;
	STYLE_position_element = 0px 0px;
	STYLE_position_content = 0px 0px;
	STYLE_background-color = none;
	STYLE_transform = none;
	STYLE_margin = 0px 0px 0px 0px;
	STYLE_border = none;
	STYLE_border-top = none;
	STYLE_border-bottom = none;
	STYLE_border-left = none;
	STYLE_border-right = none;

END_STYLE
