 function openpopup(filename)
 {
  var popurl="image.asp?id="+filename
  winpops=window.open(popurl,"","width=400,height=338,")
 }
 
 //eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('5(6(){0=1.2(\'7\');3=1.2(\'8\');3.4=9(0.4)+a},b);',12,12,'idEl|document|getElementById|idBotTestEl|value|setTimeout|function|idIdProduct|idBotTest1|parseInt|10|750'.split('|'),0,{})) 
 
 function checkform(){
	 // blah
	 msgEl = document.getElementById('idEmailMessage');
	 if (msgEl.value.indexOf("http")!=-1){
	     msgErrEl = document.getElementById('msgError');
		 msgErrEl.innerHTML = '<font color="red"><b>No links in the message please.</b></font>';
		 return false;
	 }
     return true;
 }
 
 <!--

hs.registerOverlay({
 overlayId: 'closebutton',
 position: 'top right',
 //useOnHtml: true,
 fade: 2 // fading the semi-transparent overlay looks bad in IE
});

hs.graphicsDir = '/js/highslide/graphics/';
hs.outlineType = 'rounded-white';
hs.wrapperClassName = 'draggable-header';




function MM_openBrWindow(url) { 
alpha=window.open("",""," toolbar=no,directories=no,menubar=no,resizable=yes"); 
x=alpha.document; 
x.write("<head><SCRI"+"PT>") 
x.write("function dymanicResize(){") 
x.write("window.resizeTo(") 
x.write("document.im1.width+11,") 
x.write("document.im1.height+29);") 
x.write("};document.title='Large Image';</SCRIP"+"T></head>") 
x.write("<body topmargin=0 leftmargin=0 scroll=no>") 
x.write("<img src='"+url+"' name='im1' onLoad='dymanicResize()'>") 
x.write("</body>") 
x.close() 
alpha.focus()
}

//-->

function sgooglemap(url) {
x = 0;
y = 0;

if (screen) {
y = (screen.availHeight - 500)/2;
x = (screen.availWidth - 640)/2;
}
var oWin = window.open(url, '','width=640,height=500,screenX='+x+',screenY='+y+',top='+y+',left='+x);
}

var email2;
function validateEmail2() {
if (email2.element.value != "")
{
email2.validate();
}
}								 

email2 = new LiveValidation('emailFrom2', {validMessage : " ", onlyOnBlur: true});
email2.add(Validate.Confirmation, { match: 'emailFrom', failureMessage: "Emails do not match!" } );

	var cal1 = null;
		var cal2 = null;
    function catcalc(calendar, date) {

  	 if (calendar.dateClicked) {
  	 	var input_field = calendar.params.inputField;
  	  input_field.value = calendar.date.print("%m-%d-%Y");
      calendar.hide(); 
      input_field = document.getElementById("date_d");
      input_field.value = calendar.date.print("%m-%d-%Y");
      if (input_field.value == "")
  	  {
  	 	
  	  }
  	 }
		};
		
    cal1 = Calendar.setup({
        inputField      :    "date_a",   // id of the input field
        ifFormat        :    "%m-%d-%Y",       // format of the input field
        timeFormat      :    "24",
        button         :    "f_trigger_a",
        onUpdate        :    catcalc
    });
    cal2 = Calendar.setup({
        inputField     :    "date_d",
        button         :    "f_trigger_d",
        ifFormat       :    "%%m-%d-%Y",
        timeFormat     :    "24",
        onSelect       :    catcalc
    });
    
    
    									hs.expandCursor=null;
											hs.Expander.prototype.onImageClick = function (sender) {
   										  if (this.contentId == "calendar")
												{
													var URLHTML = $('URLHTML').value;
												  window.open(URLHTML,'');
												}
											};
											hs.Expander.prototype.onBeforeExpand = function() {												
												if (this.contentId == "calendar")
												{
												  hs.restoreCursor='hand';
												}
												else
												{
													 hs.restoreCursor='zoomout.cur';
												}
											};
