function status(id,status) {
	identity=document.getElementById(id);
	if (status == 'bad') {identity.className='error';}
	if (status == 'good') {identity.className=''; i++}
}

function checkscript(){
	i='0';
	if(document.forms[0].name.value) {status('name','good');} else {status('name','bad');}
	if(document.forms[0].email.value) {status('email','good');} else {status('email','bad');}
	if(document.forms[0].username.value) {status('username','good');} else {status('username','bad');}
	if(document.forms[0].password.value) {status('password','good');} else {status('password','bad');}
	if (i == '4') {return true;} else {return false;}
}

function checkscriptNewsletter(){
	i='0';
	if(document.forms[0].title.value) {status('title','good');} else {status('title','bad');}
	if(document.forms[0].image.value) {status('image','good');} else {status('image','bad');}
	if(document.forms[0].caption.value) {status('caption','good');} else {status('caption','bad');}
	if(document.forms[0].date.value) {status('date','good');} else {status('date','bad');}
	if(document.forms[0].contents.value == '') {status('contents','bad');} else {status('contents','good');}
	if (i == '5') {return true;} else {return false;}
}

function checkscript_become_a_partner(){
	i='0';
	if(document.forms[0].company_name.value) {status('company_name','good');} else {status('company_name','bad');}
	if(document.forms[0].corporate_web_site.value) {status('corporate_web_site','good');} else {status('corporate_web_site','bad');}
	if(document.forms[0].company_address.value) {status('company_address','good');} else {status('company_address','bad');}
	if(document.forms[0].company_address_2.value) {status('company_address_2','good');} else {status('company_address_2','bad');}
	if(document.forms[0].state_or_city.value) {status('state_or_city','good');} else {status('state_or_city','bad');}
	if(document.forms[0].zip_or_postal_code.value) {status('zip_or_postal_code','good');} else {status('zip_or_postal_code','bad');}
	if(document.forms[0].country.value) {status('country','good');} else {status('country','bad');}
	if(document.forms[0].your_first_name.value) {status('your_first_name','good');} else {status('your_first_name','bad');}
	if(document.forms[0].your_last_name.value) {status('your_last_name','good');} else {status('your_last_name','bad');}
	if(document.forms[0].title_or_function.value) {status('title_or_function','good');} else {status('title_or_function','bad');}
	if(document.forms[0].contact_phone.value) {status('contact_phone','good');} else {status('contact_phone','bad');}
	if(document.forms[0].contact_fax.value) {status('contact_fax','good');} else {status('contact_fax','bad');}
	if(document.forms[0].email.value) {status('email','good');} else {status('email','bad');}
	if (i == '13') {return true;} else {return false;}
}
