function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
}
 
function displayWindow(url, width, height) {
        var Win = window.open(url,"",'width=' + width + ',height=' + height + ',resizable=yes,scrollbars=yes,menubar=no, maximize=no, top=120, left=323');
}
 
function displayWindow1(url, width, height) {
        var Win = window.open(url,"",'width=' + width + ',height=' + height + ',resizable=no,scrollbars=yes,menubar=no, maximize=no, top=0 , left=0');
}
 
function displayWindow2(url, width, height) {
        var Win = window.open(url,"",'width=' + width + ',height=' + height + ',resizable=no,scrollbars=yes,menubar=no, maximize=no, top=150% , left=130%');
}
 
<!--<a href="http://www.webreference.com" onclick="newWindow(this.href, 'popup', 600, 500); return false;" target="_blank">Visit Web Reference.com</a>-->
 
 
 
function formCheck() 
{
missinginfo = "";
 
if (document.form1.Name.value == "")
	{
		missinginfo += "\n     -  Name";
	}
 
if (document.form1.Address.value == "")
	{
		missinginfo += "\n     -  Address";
	}
else
{
	if (document.form1.Address.value.length >150)
	{
	missinginfo += "\n     - Address not more than 150 characters";
}
}
 
if (document.form1.Phone.value == "")
	{
		missinginfo += "\n     -  Phone No./E-Mail";
	}
 
var Subject=document.form1.Subject.selectedIndex;
if (Subject==0)
	{
		missinginfo += "\n     - Subject";
	}
	
 
if (missinginfo != "") 
 
{
	missinginfo ="_______________________________________________\n" +
	"Please fill up the required field :\n" +
	missinginfo + "\n_______________________________________________" +
	"";
	alert(missinginfo);
	return false;
}
else return true;
}
 
function go()
{
	box = document.forms[0].navi;
	destination = box.options[box.selectedIndex].value;
	if (destination) location.href = destination;
}
 
 
 