
 var firstpop = true ;
	   var previous_page;
	   var popwindow = null;
	   function popup(page,width,height)
       {
	   		if (firstpop) 
			{
				popwindow =  window.open(page, "", "toolbar=yes,directories=no,menubar=no,status=no,width="+width+",height="+height+",scrollbars=yes,resizable=yes")
                popwindow.focus();
				firstpop=false;
			} else 
			{
				if ( popwindow != null && !popwindow.closed && previous_page == page )
				{
					popwindow.focus(); 
				}
				else 
				{
					if (popwindow.closed) 
					{
						popwindow =  window.open(page, "","toolbar=yes,directories=no,menubar=no,status=no,width="+width+",height="+height+",scrollbars=yes,resizable=yes")
						popwindow.focus();
					}
					else
					{
						popwindow.location = page;
						popwindow.focus();
					}
				}
			}
            previous_page = page ;

        }
		
				
        self.name = "popup";
        /* end of popup window function for FAQ */

        /*show opoup window when selected country is not the United States.*/
                var popupwin = null;
                var ary = new Array() ;
                var first = true ;
                var previous_url ;
                function winopen(url) {
                        if (first) {
                                popupwin = window.open(url, "", "width=360,height=300,status=no,resizable=no,scrollbars=no");
                                popupwin.focus();
                                first = false ;
                        } else {
                                if ( popupwin != null && !popupwin.closed && previous_url == url ) { popupwin.focus(); }
                                else {
                                        if (popupwin.closed) {
                                                popupwin = window.open(url, "", "width=360,height=300,status=no,resizable=no,scrollbars=no");
                                                popupwin.focus();
                                        } else {
                                                popupwin.location = url;
                                                popupwin.focus();
                                        }
                                }
                        }
                        previous_url = url ;
                }

                function countryPop(object, url){
                var country = object.options[object.selectedIndex].value;
                if(country != "United States"){
                winopen(url);
					if(document.getElementById("zipCodeChunk")!=null)
					{
						document.getElementById("zipCodeChunk").style.display= "none";
					}
                  }
				 else{
				 	document.getElementById("zipCodeChunk").style.display= "block";
				 }
                }
        /* end of the popup window function */









