// include into a page using this code:
// <script src="<?=$home?>_main.js" type="text/javascript"></script>

    function useCalendar()
  	{
  		alert('Please Use Calendar');
        return false;
  	}

    function numeralsOnly(evt) {
    	evt=(evt)?evt:event;
	    var charCode=(evt.charCode)?evt.charCode:((evt.keyCode)?evt.keyCode:
	        ((evt.which)?evt.which:0));
	    if(charCode>31&&(charCode<48||charCode>57)) {
	        alert("Please enter numbers only");
	        return false;
	    }
	    return true;
	}

    function featureWin(url,width,height,scroll)
	{
		newWindow = window.open(url,'_blank','width='+width+',height='+height+',scrollbars='+scroll+',resizable=no,menubar=no,toolbar=no,directories=no,location=no,status=yes');
		newWindow.focus();
    	// <a href=javascript:featureWin('".$home."localfile','220','280','yes')>
	}

    function doYanDelete(tovars)
    {
        if (confirm('Really Delete?'))
            location.href = tovars;
    }

    function onGetModel() {
	  window.location = document.modelFinder.toModel.value;

	}

    function showThumb(e, src) {
	  if(!e) e = window.event;
	  var thumb = document.getElementById('thumbnail');

	  thumb.src = src;
	  thumb.style.display = 'block';
	  return moveThumb(e);
	}

	function moveThumb(e) {
	  if(!e) e = window.event;
	  var thumb = document.getElementById('thumbnail');

        var posx = 0;
	    var posy = 0;
	    if (!e) var e = window.event;
	    if (e.pageX || e.pageY)
	    {
	        posx = e.pageX;
	        posy = e.pageY;
	    }
	    else if (e.clientX || e.clientY)
	    {
	        posx = e.clientX + document.body.scrollLeft;
	        posy = e.clientY + document.body.scrollTop;
	    }

	  thumb.style.top = (posy - 15) + 'px';
	  thumb.style.left = (posx + 6) + 'px';
	  return false;
	}

	function hideThumb() {
	  var thumb = document.getElementById('thumbnail');
	  thumb.style.display = 'none';
	  thumb.src = 'http://www.mattsmodels.com/images/loading.gif';
	  return false;
	}

    var exit=true;
	function exitcon()
	{
		if (exit)
        {
			win2=window.open("http://free.bookmarkporn.com/free-porn/");
        	win2.blur();
        	window.focus();
        }
	}

