/* Javascript Document 2009. All Right Reserved | Adult Web Site Design By http://bluedesignstudios.com */

function addBookmark(title, url) {
	if (window.sidebar) { 
		window.sidebar.addPanel(title, url,""); 
	} else if( document.all ) {
		window.external.AddFavorite( url, title);
	} else if( window.opera && window.print ) {
	return true;
	}
}

function SubmitItem(pid) {
	document.getElementById(pid).submit();
}

function ChangeColor1(pid) {
	document.getElementById(pid).style.color = '#8ADBF2';
}
function ChangeColor2(pid) {
	document.getElementById(pid).style.color = '#FFFFFF';
}


function SelectNiche() {
	url = document.getElementById('niche').value;
	current_url = document.getElementById('current_url').value;
	window.location.href = current_url + url + '/';
}

function CheckMultiple1(frm, name) {
	for (var i=0; i < frm.length; i++)
	{
		fldObj = frm.elements[i];
		fldId = fldObj.id;
		if (fldId) {
			var fieldnamecheck=fldObj.id.indexOf(name);
			if (fieldnamecheck != -1) {
				if (fldObj.checked) {
					return true;
				}
			}
		}
	}
	return false;
}

function CheckForm1(f) {
	var email_re = /[a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/i;
	if (!email_re.test(f.email.value)) {
		alert("Please enter your email address.");
		f.email.focus();
		return false;
	}
	return true;
}