/*
[-----------------------------------------------------------------]
	FILE : zipopen.js
	PURPOSE : contains the function to open the Zip Code Validator
	          window.
	DATE : April 4, 2005
	AUTHOR : Ben Clark
	
	This script may be used by the license holder for the purpose
	of opening the Zip Code Validator application window.  The
	license holder may use the code on any website they develop.  
	These comments must not be removed from the page or the
	license is invalidated.  Copyright 4/4/2005.  All rights 
	reserved.
[-----------------------------------------------------------------]
*/
function zipwin(type,loc,att,place,cl,ct){if(type=="norm"){var locatn=loc;var attributes="";var l, t;var winW, winH;winW=800;winH=600;var width=screen.availWidth;var height=screen.availHeight;var attAry;if(place=="mid"){l=(width/2-(winW/2));t=(height/2-(winH/2));}else if(place=="topleft"){l=1;t=1;}else if(place=="midleft"){l=1;t=((height/2)-(winH/2));}else if(place=="lowleft"){l=1;t=(height-winH);}else if(place=="topright"){l=(width-winW);t=1;}else if(place=="midright"){l=(width-winW);t=(height/2-(winH/2));}else if(place=="lowright"){l=(width-winW);t=(height-winH);}else if(place=="topmid"){l=(width/2-(winW/2));t=1;}else if(place=="lowmid"){l=(width/2-(winW/2));t=(height-winH);}else if(place=="custom"){l=cl;t=ct;}attAry=att.split("|");attributes+="toolbar="+attAry[0];attributes+=",location="+attAry[1];attributes+=",directories="+attAry[2];attributes+=",status="+attAry[3];attributes+=",menubar="+attAry[4];attributes+=",scrollbars="+attAry[5];attributes+=",resizable="+attAry[6];attributes+=",left="+l+",top="+t;var zipValidatorWin;zipValidatorWin=window.open(loc,"ZipValidatorWin",attributes+",width="+winW+",height="+winH);}}