function validate(){	//alert("here");	missinginfo = "";	if (document.forms[0].uploadFile0.value == "") {		missinginfo += "\n   -  Uploaded Business Plan";	}	if(document.forms[0].uploadFile0.value.indexOf('.') == -1){		missinginfo += "\n   -  Uploaded Business Plan incorrect filename";	}	if (document.forms[0].fullName.value == "") {		missinginfo += "\n   -  Contact Person Name";	}	if (document.forms[0].planName.value == "") {		missinginfo += "\n   -  Business Name";	}	if (document.forms[0].address.value == "") {		missinginfo += "\n   -  Street Address";	}	if (document.forms[0].city.value == "") {		missinginfo += "\n   -  City";	}	if (document.forms[0].postalCode.value == "") {		missinginfo += "\n   -  Postal Code";	}	if (document.forms[0].email.value != "") {		if((document.forms[0].email.value.indexOf('@') == -1) ||		(document.forms[0].email.value.indexOf('.') == -1)) {			missinginfo += "\n   -  Email Address Appears Invalid";		}		}	else{		missinginfo += "\n   -  Email Address";	}		if (document.forms[0].phone.value == "") {		missinginfo += "\n   -  Telephone";	}		if (document.forms[0].iHaveRead.checked==false) {		missinginfo += "\n   -  Checked the Rules and Regulations";	}	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;}var newWin = null;function BPCpopUp(strURL, strType, strHeight, strWidth) { if (newWin != null && !newWin.closed)   newWin.close(); var strOptions=""; if (strType=="console")   strOptions="resizable,height="+     strHeight+",width="+strWidth; if (strType=="console2")   strOptions="scrollbars,resizable,height="+     strHeight+",width="+strWidth;	  if (strType=="fixed")   strOptions="status,height="+     strHeight+",width="+strWidth; if (strType=="elastic")   strOptions="scrollbars,"+     "resizable,location,status,height="+     strHeight+",width="+strWidth; newWin = window.open(strURL, 'newWin', strOptions); newWin.focus();}function changeOpener(x){	var y = "http://www.bizplancontest.ca/" + x;	top.opener.location.href = y;	opener.focus();}