function PopupWindow(url, name, width, height) {
	var winl = (screen.width - width) / 2;
	var wint = (screen.height - height) / 2;
	window.open(url, name, 'width='+width+',height='+height+',top='+wint+',left='+winl+',resizable,scrollbars').focus(); 
}

function validateNum(field) {
	var valid = "0123456789-/."
	var ok = "yes";
	var temp;
	var temp2 = field.value;

	for (var i=0; i<temp2.length; i++) {
		temp = "" + temp2.substring(i, i+1);
		if (valid.indexOf(temp) == "-1") ok = "no";
		
	}
	if (ok == "no") {
		alert("Invalid entry! This field only accepts numbers!");
		field.value = "";
		field.focus();
		field.select();
   }
   return ok;
}

function HideText(fld,hide) {
	var choice
	choice = fld.style.display
	if (choice == 'none') {
		fld.style.display = '';
		hide.style.display = 'none';
	}
	else {
		fld.style.display = 'none';
		hide.style.display = '';
	}
}

function NoIns(current) {
	var itemselection;
	var itemselection2;
	itemselection = document.frmQuote.ctype.value;
	itemselection2 = document.frmQuote.collision[1].checked;
	if (itemselection == 1 && itemselection2 == true) {
		alert("If you do not you carry collision and theft coverage on your US or Canadian policy you are only eligible for Liability Only coverage.")
		//current.value = 0;
		
	}
	
	//document.frmQuote.ctype.disabled = true;
}	