/*                    function validateZip(f) {
	                    var regExp=/\d{5}/g;
	                    if (f.zipcode.value.length>5) {f.zipcode.value=f.zipcode.value.substr(0,5);}
	                    if (regExp.test(f.zipcode.value)==false) {
		                    alert('Please enter a valid 5-digit zipcode.');
		                    f.zipcode.focus();
		                    return false;
	                    }
                    }
                    // Parses querystring
                    var strZipCode;
                    var strStateCode;
                    var strSubmit;
                    function QueryString(key)
                    {
	                    var value = null;
	                    for (var i=0;i<QueryString.keys.length;i++)
	                    {
		                    if (QueryString.keys[i].toLowerCase()==key.toLowerCase())
		                    {
			                    value = QueryString.values[i];
			                    break;
		                    }
	                    }
	                    return value;
                    }
                    QueryString.keys = new Array();
                    QueryString.values = new Array();
                    function QueryString_Parse()
                    {
	                    var query = window.location.search.substring(1);
	                    var pairs = query.split("&");
	                    for (var i=0;i<pairs.length;i++)
	                    {
		                    var pos = pairs[i].indexOf('=');
		                    if (pos>= 0)
		                    {
			                    var argname = pairs[i].substring(0,pos);
			                    var value = pairs[i].substring(pos+1);
			                    QueryString.keys[QueryString.keys.length] = argname;
			                    QueryString.values[QueryString.values.length] = value;		
		                    }
	                    }
                    }
                    QueryString_Parse();
                    strZipCode = '';
	                strStateCode = '';
	                strSubmit = '';
                    if (QueryString("v") != null) {
	                    strSubmit = QueryString("v");
                    }
                    if (QueryString("zipcode") != null) {
	                    strZipCode = QueryString("zipcode");
	                    strStateCode = ''
                    }
                    else {
	                    strZipCode = '';
	                    if (QueryString("ssc") != null) {
		                    strStateCode = QueryString("ssc");
	                    }
	                    else {
		                    strStateCode = '';
	                    }
                    }
                     if ((strZipCode.length <= 0 && strStateCode.length <= 0) || (strSubmit.length <= 0)){
                        document.write ('<form action="" onsubmit="return validateZip(this);" method="get" name="frmZipAuto">');
                        document.write ('<div>');
						document.write ('<h3 align="center"><font color=#CC0000>Find an auto insurance provider in your area!</font></h3>');
						document.write ('<p align="center">Please enter your Zip Code:');
                        document.write ('<input type=text size=5 class="form-button" name="zipcode" value="">');
                        document.write ('<input type=hidden name="v" value="1">');
						document.write ('<br>');
                        document.write ('<input type="submit" name="Submit" value="Get Quotes">');
                        document.write ('</p>');
                        document.write ('</div>');
                        document.write ('</form>');
                    }else{
                        ni_ad_client = "317";
                        ni_res_id = 2;
                        ni_alt_url = "https://www.nextinsure.com/search.asp";
                        ni_zc = strZipCode;
                        ni_str_state_code = strStateCode;
                        ni_var1 = '';
                        ni_display_width = 500;
                        ni_display_height = 1000;
                        ni_color_border = "";
                        ni_color_bg = "";
                        ni_color_link = "";
                        ni_color_url = "";
                        ni_color_text = "";
                        document.write ('<scr' + 'ipt type="text/javascript" src="https://www.nextinsure.com/retrieve_listings.asp">');
                        document.write ('</scr' + 'ipt>');
                        document.write ('<noscr' + 'ipt>');
                        document.write ('   <a href="https://www.nextinsure.com/search.asp?src=317&res=2"><img src="https://www.nextinsure.com/images/nojs/image.asp?src=317&res=2" border="0"></a>');
                        document.write ('</noscr' + 'ipt>');
                    } */
