function ValidateClick() {
var siteURL ="";
siteURL ="https://www.netquote.com/quotes/health-insurance.aspx?partnerid=17029&campaign=hin";

 bw_params  = 'width='+screen.width;//sets the window fullscreen on other browsers different from IE
 bw_params += ', height='+screen.height;//sets the window fullscreen on other browsers different from IE
 bw_params += ', top=0, left=0'//sets the window on the top left corner of the screen
 bw_params += ', fullscreen=yes'//sets the window fullscreen on IE
 bw_params += ', scrollbars=1'//Enable the scrollbars if the document is bigger than the window
 bw_params += ', location=1'//The Location entry field where you enter the URL.
 bw_params += ', menubar=1'//The menu bar of the window
 bw_params += ', toolbar=1'//The standard browser toolbar, with buttons such as Back and Forward.
 bw_params += ', resizable=1'//Allow/Disallow the user to resize the window.
 bw_params += ', menubars=1';//The menu bar of the window
 bw_params += ', directories=1';//The standard browser directory buttons, such as What's New and What's Cool


var zip_valid ="";
zipValue = document.bw_form.zip.value;

if (isZipcode(zipValue)){
	window.open(siteURL, null, bw_params);
	document.bw_form.action ="results.html"; //url where the BrokersWeb ResultsPage will be placed
	return true;
	}
	else {
	window.location.href = siteURL;
	return false;
	}
return false;
} 

function isZipcode(value) {
    var exp_zipcode = /(^\d{5}$)|(^\d{5}-\d{4}$)/;
    return exp_zipcode.test(value);
}