function hideForm() {
	if (notIphone == true) {
		Effect.SlideUp('contactContactFormArea', {
			duration: 0.5
		});
	} else 
		$('contactContactFormArea').hide();
	$('showHideForm').writeAttribute({
		href: 'javascript:showForm();',
		title: 'Show the email form'
	});
}
function showForm() {
	if (notIphone == true) {
		Effect.SlideDown('contactContactFormArea', {
			duration: 0.5
		});
	} else 
		$('contactContactFormArea').show();
	$('showHideForm').writeAttribute({
		href: 'javascript:hideForm();',
		title: 'Hide the email form'
	});
}

function prepareForm() {
	$('contactModule').insert('<h2 class="address">Email</h2><p class="address ie8Fix">If you&rsquo;d like to enquire about my services or ask me a question, please fill out the fields in the <a href="javascript:showForm();" title="Show the email form" id="showHideForm">form below</a>.</p><div id="contactContactFormArea"><p class="lead"><span>*</span> Required information</p><form id="cFormContact" method="post" action="http://www.broader.com/php/ajaxContact/contact/contact.php"><fieldset><label for="contactName">Your name</label><br /><input type="text" name="contactName" id="contactName" class="text" /><br /><label for="contactEmail">Your email address<span>*</span></label><br /><input type="text" name="contactEmail" id="contactEmail" class="text" /><br /><label for="contactRegard">Subject</label><br /><input type="text" name="contactRegard" id="contactRegard" value="Your services..." class="text" /><br /><label for="contactText">Question<span>*</span></label><br /><textarea name="contactText" id="contactText" cols="40" rows="5" class="text"></textarea><br /><input type="checkbox" name="contactCC" id="contactCC" value="send" /><label for="contactCC" class="labelRadio">Forward a copy to your email address</label><br /><input class="submit" type="submit" name="contactSend" id="contactSend" value="Send Question" /></fieldset></form><div id="loadBarContact" style="display: none;"><p><strong>Attempting to send your question&hellip;</strong></p><img src="http://www.broader.com/images/ajax-loader.gif" alt="Loading..." title="Sending Email" width="24" height="24" /></div><div id="emailSuccessContact" style="display: none;"><p><strong>Your question was sent successfully. Thank you.</strong></p></div></div>');
	/*
		Inserts the following XHTML...
		
							<h2 class="address">Email</h2>
							<p class="address ie8Fix">If you&rsquo;d like to enquire about my services or ask me a question, please fill out the fields in the <a href="javascript:showForm();" title="Show the email form" id="showHideForm">form below</a>.</p>
							<div id="contactContactFormArea">
								<p class="lead"><span>*</span> Required information</p>
								<form id="cFormContact" method="post" action="http://www.broader.com/php/ajaxContact/contact/contact.php">
									<fieldset>
										<label for="contactName">Your name</label><br />
										<input type="text" name="contactName" id="contactName" class="text" /><br />
										<label for="contactEmail">Your email address<span>*</span></label><br />
										<input type="text" name="contactEmail" id="contactEmail" class="text" /><br />
										<label for="contactRegard">Subject</label><br />
										<input type="text" name="contactRegard" id="contactRegard" value="Your services..." class="text" /><br />
										<label for="contactText">Question<span>*</span></label><br />
										<textarea name="contactText" id="contactText" cols="40" rows="5" class="text"></textarea><br />
										<input type="checkbox" name="contactCC" id="contactCC" value="send" /><label for="contactCC" class="labelRadio">Forward a copy to your email address</label>
								<br />
										<input class="submit" type="submit" name="contactSend" id="contactSend" value="Send Question" />
									</fieldset>
								</form>
								<!-- end cFormContact -->
								<div id="loadBarContact" style="display: none;">
									<p><strong>Attempting to send your question&hellip;</strong></p>
									<img src="http://www.broader.com/images/ajax-loader.gif" alt="Loading..." title="Sending Email" width="24" height="24" />
								</div>
								<!-- end loadBarRequests -->
								<div id="emailSuccessContact" style="display: none;">
									<p><strong>Your question was sent successfully. Thank you.</strong></p>
								</div>
								<!-- end emailSuccessRequests -->
							</div>
							<!-- end contactContactFormArea -->
	*/
	$('contactContactFormArea').hide();
	setTimeout('ajaxContactContact();', 500);
}
