<!-- This script and many more are available free online at -->

<!-- The JavaScript Source!! http://javascript.internet.com -->



<!-- Begin

function checkFieldsContactEnquiry() {

missinginfo = "";

if (document.contactEnquiry.contactName.value == "") {

missinginfo += "\n     -  Contact Name";

}

if(document.contactEnquiry.email.value == "") {

missinginfo += "\n     -  E-mail";

}

if(document.contactEnquiry.yourEnquiry.value == "") {

missinginfo += "\n     -  Enquiry";

}



if (missinginfo != "") {

missinginfo ="_____________________________\n" +

"You failed to correctly fill in your:\n" +

missinginfo + "\n_____________________________" +

"\nPlease re-enter and submit again!";

alert(missinginfo);

return false;

}

else 

	{

	if (emailCheck (document.contactEnquiry.email.value) == false)

 		{

		return false;

		}	

	else

		return true;

	}

}



function checkFieldsTest() {

missinginfo = "";





if((document.test.partB1[0].checked == false) &&

	(document.test.partB1[1].checked == false) &&

	(document.test.partB1[2].checked == false) &&

	(document.test.partB1[3].checked == false) &&

	(document.test.partB1[4].checked == false) 	

	)

 {

	missinginfo += "\n     -  Composition Select Part B";

}

if(document.test.partB.value == "") {

missinginfo += "\n     -  Composition text in Part B";

}



if (missinginfo != "") {

missinginfo ="_____________________________\n" +

"You failed to correctly fill in your:\n" +

missinginfo + "\n_____________________________" +

"\nPlease re-enter and submit again!";

alert(missinginfo);

return false;

}

else 

	{

	

		return true;

	}

}





















function checkFieldsAgent() {

missinginfo = "";

if (document.agentprofile.name.value == "") {

missinginfo += "\n     -  Name";

}

if(document.agentprofile.countryrepresented.value == "") {

missinginfo += "\n     -  Country represented";

}

if(document.agentprofile.contactname.value == "") {

missinginfo += "\n     -  Contact name";

}

if(document.agentprofile.address.value == "") {

missinginfo += "\n     -  Address";

}

if(document.agentprofile.city.value == "") {

missinginfo += "\n     -  City";

}

if(document.agentprofile.postcode.value == "") {

missinginfo += "\n     -  Postcode";

}

if(document.agentprofile.statecounty.value == "") {

missinginfo += "\n     -  State/County";

}

if(document.agentprofile.country.value == "") {

missinginfo += "\n     -  Country";

}

if(document.agentprofile.phone1.value == "") {

missinginfo += "\n     -  Phone 1";

}

if(document.agentprofile.email.value == "") {

missinginfo += "\n     -  Email";

}









if (missinginfo != "") {

missinginfo ="_____________________________\n" +

"You failed to correctly fill in your:\n" +

missinginfo + "\n_____________________________" +

"\nPlease re-enter and submit again!";

alert(missinginfo);

return false;

}

else 

	{

	if (emailCheck (document.agentprofile.email.value) == false)

 		{

		return false;

		}	

	else

		return true;

	}

}















function sendingtofriend() {

missinginfo = "";

if (document.send200.sendto.value == "") {

missinginfo += "\n     -  Send to email";

}

if(document.send200.yourname.value == "") {

missinginfo += "\n     -  Your name";

}

if(document.send200.youremail.value == "") {

missinginfo += "\n     -  Your email";

}







if (missinginfo != "") {

missinginfo ="_____________________________\n" +

"You failed to correctly fill in your:\n" +

missinginfo + "\n_____________________________" +

"\nPlease re-enter and submit again!";

alert(missinginfo);

return false;

}

else 

	{

	if ((emailCheck (document.send200.youremail.value) == false) || (emailCheck (document.send200.sendto.value) == false))

 		{

		return false;

		}	

	else

		return true;

	}

}







function sendenquiry() {

missinginfo = "";

if (document.send200.yourname.value == "") {

missinginfo += "\n     -  Your name";

}

if(document.send200.youremail.value == "") {

missinginfo += "\n     -  Your email";

}

if(document.send200.enq.value == "") {

missinginfo += "\n     -  Enquiry";

}



if (missinginfo != "") {

missinginfo ="_____________________________\n" +

"You failed to correctly fill in your:\n" +

missinginfo + "\n_____________________________" +

"\nPlease re-enter and submit again!";

alert(missinginfo);

return false;

}

else 

	{

	if ((emailCheck (document.send200.youremail.value) == false))

 		{

		return false;

		}	

	else

		return true;

	}

}











function searching2() {

missinginfo = "";

if (document.searching.keyword.value == "") {

missinginfo ="Please select a keyword\n";

}



if (missinginfo != "") {

alert(missinginfo);

return false;

}

else 

	{

	return true;

	}

}



