function proceedTarget(strTarget,valid) {
	var obj=document.forms[0];
	//obj.action="http://www.qksrv.net/interactive"
	//obj.url.value=affiliateLoc;
	obj.action=affiliateLoc;
	obj.target.value=strTarget;
	if (valid||validate_entry()) obj.submit();
	}
function proceed() {
	var obj=document.forms[0];
//	obj.action="http://www.qksrv.net/interactive"
//	obj.url.value=affiliateLoc;
	obj.action=affiliateLoc;
	obj.target.value="quality.php";
	if (validate_entry()) document.forms[0].submit();
}
function proceed1() {
	var obj=document.forms[0];
	//obj.action="http://www.qksrv.net/interactive"
	///obj.url.value=affiliateLoc;
	obj.action=affiliateLoc;
	obj.target.value="tp_tool1.php";
	if( validate_entry() ) obj.submit();
	}
function proceed2(){
	var obj=document.forms[0];
	//obj.action="http://www.qksrv.net/interactive"
	//.obj.url.value=affiliateLoc;
	obj.action=affiliateLoc;
	obj.target.value="tp_tool1.php";
	document.forms[0].submit();
	}
	
function showcountry(cname,pname) {
	document.forms[0].cpick.value = cname;
	document.forms[0].ppick.value = pname;
	document.forms[0].submit();
}
function buyit(url){
	document.forms[0].submit();
	}

function changeplace() {
	//if (document.forms[0].birth_placeid.value > 0) {
	//	alert( 'birth_placeid cleared from ' + document.forms[0].birth_placeid.value );
	//}
	document.forms[0].birth_placeid.value = 0;
}
function validate_entry() {
	var obj=document.forms[0];
	if (obj.birth_year.value < 1900 || obj.birth_year.value > 2100) {
		alert( "Please check you have entered your birth year correctly.  Valid years begin from 1900" );
		obj.birth_year.focus();
		return false;
	}
	if (obj.city.value.length < 1) {
		alert( "Please enter the city you were born in" );
		obj.city.focus();
		return false;
	}
	return true;
}
