function getDateString() {
	        var dateObj = new Date();

	        var monthName = new Array("Jan.","Feb.","March","April","May","June","July","Aug.","Sept.","Oct.","Nov.","Dec.");

	        var dayName = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturaday");

	        var day = dayName[dateObj.getDay()];

	        var month = monthName[dateObj.getMonth()];

	        var year = dateObj.getYear();

	        if (year < 2000) {

	                year = year + 1900;

	        }

	        return  day  + "&nbsp;&nbsp;" + month + " " + dateObj.getDate() + ", " + year


	}




function prodpopupwin(eventObject) {
  thewinleft=eventObject.screenX-350;
  thewintop=eventObject.screenY-10;
  thewinwidth=510;
  thewinheight=490;
  

  
      thewinleft=eventObject.screenX-325;
  if (thewinleft<0) thewinleft=0;
  if ((thewinleft+thewinwidth)>screen.width) thewinleft=screen.width-(thewinwidth+10);
  if ((thewintop+thewinheight)>screen.height) thewintop=screen.height-(thewinheight+10);
  
  var newWin = window.open("products/fencing_frnt.html", "prodmenu", "width="+thewinwidth+",height="+thewinheight+",scrollbars=0,menubar=0,toolbar=0,location=0,status=0,resizable=0,top="+thewintop+",left="+thewinleft+",screenX="+thewinleft+",screenY="+thewintop);



    newWin.moveTo(thewinleft+6,thewintop+2);
  

  }




function openWin() {
  window.open("help/signup_form.html","help",'toolbar=1,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=800,height=600');
}

function popUp(pPage) {
 popUpWin = window.open(pPage,'winPopUp','resizable=no,toolbar=no,scrollbars=yes,width=600,height=650,top=10,left=50');
 }
 
 
 function proofUp(pPage) {
 popUpWin = window.open(pPage,'winPopUp','resizable=no,toolbar=no,scrollbars=yes,width=800,height=650,top=70,left=25');
 }
 
 function popWide(pPage) {
 popUpWin = window.open(pPage,'winPopUp','resizable=Yes,toolbar=no,scrollbars=yes,width=800,height=650,top=250,left=50');
 }
 
 function popCam(pPage) {
 popUpWin = window.open(pPage,'winPopUp','resizable=no,toolbar=no,scrollbars=no,width=800,height=600,top=100,left=50');
 }
 
 function poplogin(pPage) {
 popUpWin = window.open(pPage,'winPopUp','resizable=no,toolbar=no,scrollbars=no,width=375,height=375,top=100,left=50');
 }
  function popHelp(pPage) {
 popUpWin = window.open(pPage,'winPopUp','resizable=no,toolbar=no,scrollbars=no,width=375,height=375,top=10,left=50');
 }
 
 function popPrint(pPage) {
 popUpWin = window.open(pPage,'winPopUp','resizable=no,toolbar=yes,scrollbars=yes,width=725,height=580,top=10,left=50');
 }
 
 
function Closer()
	{
		window.close()
	}

 

var days = new Array();

days[0] = "Sunday";
days[1] = "Monday";
days[2] = "Tuesday";
days[3] = "Wednesday";
days[4] = "Thursday";
days[5] = "Friday";
days[6] = "Saturday";


var months = new Array();
months[0] = "January";
months[1] = "February";
months[2] = "March";
months[3] = "April";
months[4] = "May";
months[5] = "June";
months[6] = "July";
months[7] = "August";
months[8] = "September";
months[9] = "October";
months[10] = "November";
months[11] = "December";

function MM_swapImage() { //v1.0

  var i,theObj,j=0,swapArray=new Array,oldArray=document.MM_swapImgData;

  for (i=0; i < (MM_swapImage.arguments.length-2); i+=3) {

    theObj = eval(MM_swapImage.arguments[(navigator.appName == 'Netscape')?i:i+1])

    if (theObj != null) {

      swapArray[j++] = theObj;

      swapArray[j++] = (oldArray==null || oldArray[j-1]!=theObj)?theObj.src:oldArray[j];

      theObj.src = MM_swapImage.arguments[i+2];

  } }

  document.MM_swapImgData = swapArray; //used for restore

}



function MM_swapImgRestore() { //v1.0

  if (document.MM_swapImgData != null)

    for (var i=0; i<(document.MM_swapImgData.length-1); i+=2)

      document.MM_swapImgData[i].src = document.MM_swapImgData[i+1];

}





function MM_openWindow(theURL,winName,launchWin,features) { //v1.0

  if (launchWin == ''){

    window.open(theURL,winName,features);

  }

  else{

    var controller = window.open(theURL,winName,features);

    if (controller.opener == null){

      controller.opener = self;

    }

    controller.opener.name = launchWin;

    return controller;

  }

}



function MM_preloadImages() { //v1.2

  if (document.images) {

    var imgFiles = MM_preloadImages.arguments;

    var preloadArray = new Array();

    for (var i=0; i<imgFiles.length; i++) {

      preloadArray[i] = new Image;

      preloadArray[i].src = imgFiles[i];

    }

  }

}



function MM_openBrWindow(theURL,winName,features) { //v1.2

  window.open(theURL,winName,features);

}





