   var pup;
   var win_num=1;
   function ShowPopup(URL,w,h,xpos,ypos){
      win_num=win_num+1;
      if (h==0){
         window.open(URL, win_num, 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=1,width=720,height=430,left = 250,top = 134');   
      }
      else{
         window.open(URL, win_num, 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=1,width='+w+',height='+h+',left = '+xpos+',top = '+ypos);
      }
   }
   
   function ShowPopupWin(URL,w,h,xpos,ypos,win_name){
      win_num=win_num+1;
      if (h==0){
         window.open(URL, win_name, 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=0,width=720,height=430,left = 175,top = 134');   
      }
      else{
         window.open(URL, win_name, 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=0,width='+w+',height='+h+',left = '+xpos+',top = '+ypos);
      }
   }

   function check_cancel() {
      window.close();   
   }
   
   function hello() {
      alert("Hello");
   }

	var stat_field_length=0;
	function TabNext(obj,event,len,next_field) {
		if (event == "down") {
			stat_field_length=obj.value.length;
			}
		else if (event == "up") {
			if (obj.value.length != stat_field_length) {
				stat_field_length=obj.value.length;
				if (stat_field_length == len) {
					if (next_field) {
						next_field.focus();
						}
					}
				}
			}
		}

function submitForm(cont) {
   document.gs2006_form.cont.value=cont;
   document.gs2006_form.submit();   
}

   function printStyle(page,query,status,keywords,date2) {
//      var header=confirm("Do you wish to print this page with your name and address header?\n\nChoosing Cancel will print the page without the header.");
//      if (header) {
//               ShowPopup(page+'?qprint=1&header=1&date_show='+date_set+'&date1='+date1+'&date2'+date2+'&'+query,800,600)
   //      ShowPopup(page+'?qprint=1&header=1&date_show='+date+'&date1='+date1+'&date2'+date2+'&'+query,800,600)
//      }
//      else {
//               ShowPopup(page+'?qprint=1&header=0&date_show='+date_set+'&date1='+date1+'&date2'+date2+'&'+query,800,600)
   //      ShowPopup(page+'?qprint=1&header=0&date_show='+date+'&date1='+date1+'&date2'+date2+'&'+query,800,600)
//      }
               ShowPopup(page+'?qprint=1&header=0&status='+status+'&keywords='+keywords+'&date2'+date2+'&'+query,800,600)
   }

   function QuickPrint() {
      bV = parseInt(navigator.appVersion);
      if (bV >= 4) {
         window.print();
      }
   }
   
   function _CF_hasValue(obj, obj_type)
{
	if (obj_type == "TEXT" || obj_type == "PASSWORD")
	{
		if (obj.value.length == 0) 
	  		return false;
		else 
	  		return true;
	}
	else if (obj_type == "SELECT")
	{
		for (i=0; i < obj.length; i++)
		{
			if (obj.options[i].selected)
				return true;
		}
	   	return false;	
	}
	else if (obj_type == "SINGLE_VALUE_RADIO" || obj_type == "SINGLE_VALUE_CHECKBOX")
	{
		if (obj.checked)
			return true;
		else
	   		return false;	
	}
	else if (obj_type == "RADIO" || obj_type == "CHECKBOX")
	{
		for (i=0; i < obj.length; i++)
		{
			if (obj[i].checked)
				return true;
		}
	   	return false;	
	}
}

function _CF_onError(form_object, input_object, object_value, error_message)
{
	alert(error_message);
	return false;	
}


//  End -->