<!-- Hide JavaScript

function submitform ( entry, adres )

{

	entry.action = adres;

	if (testForm(entry) == true) {

		entry.submit();

		Win1 = window.open("","displayWindow1",'width="750",height="500",resizable=yes,scrollbars=yes,menubar=yes,top=0,left=0' );

		Win1.document.write('<head>');

		Win1.document.write('<title>Enrollment Form</title><META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1"><link rel="stylesheet" type="text/css" href="./style/polword.css">');

		Win1.document.write('</head>');

		Win1.document.write('<body style="background-color: #ffffff;">');

		Win1.document.write('<div class="pagetitle"><strong>ENROLMENT FORM</strong></div><br><div class="text03">Title: ' + isABlank(entry.formtitle.value) + '</div><div class="text03">First name: ' + isABlank(entry.firstname.value) + '</div><div class="text03">Surname: ' + isABlank(entry.surname.value) + '</div><div class="text03">Date of Birth: ' + isABlank(entry.birth.value) + '</div><div class="text03">Nationality: ' + isABlank(entry.nationality.value) + '</div><div class="text03">Address: ' + isABlank(entry.address.value) + '</div><div class="text03">Tel: ' + isABlank(entry.phone.value) + '</div><div class="text03">Email: ' + isABlank(entry.email.value) + '</div><div class="text03">Level of course: ' + isABlank(entry.course.value) + '</div><div class="text03">Rate your knowledge of the Polish language (none, poor, fair, good, excellent):..................</div><div class="text03">oral: ' + isABlank(entry.oralknowledge.value) + '</div><div class="text03">written: ' + isABlank(entry.writtenknowledge.value) + '</div><div class="text03">I enclose £' + cost(entry.course.value) + ' payable to Polword.</div><div class="text03">Method of payment (cash or cheque): ..............................</div><div class="text03">Why do you want to learn Polish?<br></div><div class="text03">(Please describe in short your motivation for studying Polish, your main goals for this course and specify the type of skills you would like to focus on):</div><div class="text03">' + isABlank(entry.whylearn.value) + '</div><br><br><br><br><br><br><br><br><div class="text02"><strong>Postal Address:</strong><br>Polish Language Centre,<br>Polword Ltd., 64 Great Titchfield Street,<br>London W1W 7QH</div>');

		Win1.document.write('</body>');

		Win1.document.close();

	}

}

function isABlank (entry) {

	if (entry == "") {

		entry = "..............................";

	}

	return entry;
}

function cost (entry) {

	if (entry == "Beginners" || entry == "Beginners Semi-Intensive") { temp = "210.00"; return temp;}

	if (entry == "Improvers" || entry == "Lower Intermediate") { temp = "105.00"; return temp;}

	if (entry == "Intermediate") { temp = "100.00"; return temp;}

}

function printForm (entry) {

	var Win1;

	

	if (testForm(entry) == true) {

		Win1 = window.open("","displayWindow1",'width="750",height="500",resizable=yes,scrollbars=yes,menubar=yes,top=0,left=0' );

		Win1.document.write('<head>');

		Win1.document.write('<title>Enrollment Form</title><META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1"><link rel="stylesheet" type="text/css" href="./style/polword.css">');

		Win1.document.write('</head>');

		Win1.document.write('<body style="background-color: #ffffff;" onload="print();">');

		Win1.document.write('<div class="pagetitle"><strong>ENROLMENT FORM</strong></div><br><div class="text03">Title: ' + isABlank(entry.formtitle.value) + '</div><div class="text03">First name: ' + isABlank(entry.firstname.value) + '</div><div class="text03">Surname: ' + isABlank(entry.surname.value) + '</div><div class="text03">Date of Birth: ' + isABlank(entry.birth.value) + '</div><div class="text03">Nationality: ' + isABlank(entry.nationality.value) + '</div><div class="text03">Address: ' + isABlank(entry.address.value) + '</div><div class="text03">Tel: ' + isABlank(entry.phone.value) + '</div><div class="text03">Email: ' + isABlank(entry.email.value) + '</div><div class="text03">Level of course: ' + isABlank(entry.course.value) + '</div><div class="text03">Rate your knowledge of the Polish language (none, poor, fair, good, excellent):..................</div><div class="text03">oral: ' + isABlank(entry.oralknowledge.value) + '</div><div class="text03">written: ' + isABlank(entry.writtenknowledge.value) + '</div><div class="text03">I enclose £' + cost(entry.course.value) + ' payable to Polword.</div><div class="text03">Method of payment (cash or cheque): ..............................</div><div class="text03">Why do you want to learn Polish?<br></div><div class="text03">(Please describe in short your motivation for studying Polish, your main goals for this course and specify the type of skills you would like to focus on):</div><div class="text03">' + isABlank(entry.whylearn.value) + '</div><br><br><br><br><br><br><br><br><div class="text02"><strong>Postal Address:</strong><br>Polish Language Centre, Polword Ltd.,<br>64 Great Titchfield Street, London W1W 7QH</div>');

		Win1.document.write('</body>');

		Win1.document.close();

	}

}

function isANumber(entry)

{

	tmp = entry.value;

	for(var i = 0; i < tmp.length; i++)

	{

		if ((!parseInt(tmp.charAt(i), 10)) && (tmp.charAt(i) != "0") && (tmp.charAt(i) != "+") && (tmp.charAt(i) != "/") && (tmp.charAt(i) != "-") && (tmp.charAt(i) != "(") && (tmp.charAt(i) != ")") && (tmp.charAt(i) != " "))

		{

			alert("Please correct the \"Telephone\" field.\n    Only digits and + / - ( ) can be used.");

			entry.value = entry.value.substring(0, (i));

			return false;

		}

	}

	return true;

}


function testForm(entry) {

	if (entry.surname.value == "")

	{

		alert("Please complete the Surname field");

		entry.surname.focus();

		return false;

	}

	

	if (entry.phone.value == "")

	{

		alert("Please complete the Thelephone field");

		entry.phone.focus();

		return false;

	}

  	

  	return true;

  		

}

-->

