function checkall(){
var str = '';
var elem = document.getElementById('form1').elements;
	for(var i = 0; i < elem.length; i++)
	{
		var formname='form1';
		var elemname=elem[i];
		var thisid=elem[i].id;
		var thisname=elem[i].name;

		if (thisid!=''){
			var x=thisid.split("-");
			if (x[0]=='normal') document.getElementById(thisid).checked=true; 
		
		}
	}
}

function checktermsnconditions(){
	var trms = document.getElementById("termsagree");
	if(!trms.checked) {
		alert('You must agree with the terms in order to be able to continue');
		return false;
	}
	else return true;
	
}

function copyit(theField) {
var tempval=eval("document."+theField)
tempval.focus()
tempval.select()
therange=tempval.createTextRange()
therange.execCommand("Copy")
}
function highlightmetasearch() {
document.form1.select1.select(); document.form1.select1.focus();
}
function copymetasearch() {
highlightmetasearch();
textRange = document.form1.select1.createTextRange();
textRange.execCommand("RemoveFormat");
textRange.execCommand("Copy");
alert("This post has been copied to your clipboard.");
   }
   
  Array.prototype.inArray = function (value) {
	var i;
	for (i=0; i < this.length; i++) {
		if (this[i] === value) {
			return true;
		}
	}
	return false;
};