
function change(){

if (document.form2.checkbox.checked){

return true;

}
else{
alert("Please read  our 'Term and conditions' before joining. If you accept then please check the checkbox below and click the 'Join' button.");
return false;

}


}

function change2(){

var city=document.form1.city.value;
var postal=document.form1.postal.value;
var desc=document.form1.desc.value;
var contact=document.form1.contact.value;


//	alert("You missed one of the required fields . Fields marked with red * are required. !");
	

city = city.replace(/^[\s]+/g,"");
city = city.replace(/[\s]+$/g,"");

postal = postal.replace(/^[\s]+/g,"");
postal = postal.replace(/[\s]+$/g,"");

desc = desc.replace(/^[\s]+/g,"");
desc = desc.replace(/[\s]+$/g,"");

contact = contact.replace(/^[\s]+/g,"");
contact = contact.replace(/[\s]+$/g,"");

if( city == "" || desc == "" || contact == "")
	{
		alert("You missed one of the required fields . Fields marked with red * are required. !");
		return false;
	}
	else
	{
		return true;
	}	 

}

function change9(){

alert("You missed one of the required fields . Fields marked with red * are required. !");
	
}

function change4(){


var city=document.form1.city.value;
var postal=document.form1.postal.value;
var desc=document.form1.desc.value;
var contact=document.form1.contact.value;
var country=document.form1.country.value;
var subtype=document.form1.subtype.value;

//	alert("You missed one of the required fields . Fields marked with red * are required. !");
	

city = city.replace(/^[\s]+/g,"");
city = city.replace(/[\s]+$/g,"");

country = country.replace(/^[\s]+/g,"");
country = country.replace(/[\s]+$/g,"");

subtype = subtype.replace(/^[\s]+/g,"");
subtype = subtype.replace(/[\s]+$/g,"");

postal = postal.replace(/^[\s]+/g,"");
postal = postal.replace(/[\s]+$/g,"");

desc = desc.replace(/^[\s]+/g,"");
desc = desc.replace(/[\s]+$/g,"");

contact = contact.replace(/^[\s]+/g,"");
contact = contact.replace(/[\s]+$/g,"");

var st= "You missed the field marked with * :- \n";


if( city == "" || desc == "" || contact == "" ||  country == "" ||  subtype == "")
	{
		if(city == ""){
		st=st.concat("- Enter City \n");
		}
		if(desc == ""){
		st=st.concat("- Enter Description \n");
		}
		if(contact == ""){
		st=st.concat("- Enter Contact Information \n");
		}
		if(country == ""){
			st=st.concat("- Select Country \n");
		}
		if(subtype == ""){
		 st=st.concat("- Select Item/Listing Type \n");
			//alert("Please select Item/Listing Type  . Fields marked with red * are required. !");
		}
	  alert(st);
		return false;
	}
	else
	{
	
		return true;
	}	 

//alert("You missed one of the required fields . Fields marked with red * are required. !");
//return false;
}


function change6(){


var city=document.form1.city.value;
var postal=document.form1.postal.value;
var desc=document.form1.desc.value;
var contact=document.form1.contact.value;
//var country=document.form1.country.value;
//var subtype=document.form1.subtype.value;

//	alert("You missed one of the required fields . Fields marked with red * are required. !");
	

city = city.replace(/^[\s]+/g,"");
city = city.replace(/[\s]+$/g,"");

//country = country.replace(/^[\s]+/g,"");
//country = country.replace(/[\s]+$/g,"");

//subtype = subtype.replace(/^[\s]+/g,"");
//subtype = subtype.replace(/[\s]+$/g,"");

postal = postal.replace(/^[\s]+/g,"");
postal = postal.replace(/[\s]+$/g,"");

desc = desc.replace(/^[\s]+/g,"");
desc = desc.replace(/[\s]+$/g,"");

contact = contact.replace(/^[\s]+/g,"");
contact = contact.replace(/[\s]+$/g,"");

var st= "You missed the field marked with * :- \n";


if( city == "" || desc == "" || contact == "")
	{
		if(city == ""){
		st=st.concat("- Enter City \n");
		}
		if(desc == ""){
		st=st.concat("- Enter Description \n");
		}
		if(contact == ""){
		st=st.concat("- Enter Contact Information \n");
		}
	
	  alert(st);
		return false;
	}
	else
	{
	
		return true;
	}	 

//alert("You missed one of the required fields . Fields marked with red * are required. !");
//return false;
}




function printpage(){

window.print();

}

function clearDefault(el) {
  if (el.defaultValue==el.value) el.value = ""
}


