function openWin1(url)
{
var j=window.open(url,"jj","width=425,height=420,scrollbars=1")
}

function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, ',type=fullWindow,fullscreen,scrollbars=yes');
return false;
}
function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6.
{
   var arVersion = navigator.appVersion.split("MSIE")
   var version = parseFloat(arVersion[1])
   if ((version >= 5.5) && (document.body.filters)) 
   {
      for(var i=0; i<document.images.length; i++)
      {
         var img = document.images[i]
         var imgName = img.src.toUpperCase()
         if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
         {
            var imgID = (img.id) ? "id='" + img.id + "' " : ""
            var imgClass = (img.className) ? "class='" + img.className + "' " : ""
            var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
            var imgStyle = "display:inline-block;" + img.style.cssText 
            if (img.align == "left") imgStyle = "float:left;" + imgStyle
            if (img.align == "right") imgStyle = "float:right;" + imgStyle
            if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
            var strNewHTML = "<span " + imgID + imgClass + imgTitle
            + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
            + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
            + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
            img.outerHTML = strNewHTML
            i = i-1
         }
      }
   } 
}
//window.attachEvent("onload", correctPNG);


function viewDetails(id)
		{
			var w = open("viewOwner.aspx?vacId="+ id,"viewDetails","top=200,left=300,width=400,height=250,addressbar=no,scrollbars=yes,statusbar=no,menubar=no");
			w.focus();
		}
function viewBidder(id)
		{
			var w = open("viewBidder.aspx?vacId="+ id,"viewBidder","top=200,left=300,width=400,height=250,addressbar=no,scrollbars=yes,statusbar=no,menubar=no");
			w.focus();
		}

<!--
function __doPostBack(eventTarget, eventArgument) {
	var theform;
	if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) {
		theform = document.Form1;
		}
   else {
			theform = document.forms["Form1"];
		}
		theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
		theform.__EVENTARGUMENT.value = eventArgument;
		theform.submit();
	}
// -->

/*
   var theImages = new Array()

   //Random-loading images
   theImages[0] = 'images/banners/01.png' // replace with names of images
   theImages[1] = 'images/banners/02.png' // replace with names of images
   theImages[2] = 'images/banners/03.png' // replace with names of images
   theImages[3] = 'images/banners/04.png' // replace with names of images
   theImages[4] = 'images/banners/05.png' // replace with names of images
   theImages[5] = 'images/banners/06.png' // replace with names of images
   var j = 0
   var p = theImages.length;
	var preBuffer = new Array()
	
	for (i = 0; i < p; i++){
	preBuffer[i] = new Image()
	preBuffer[i].src = theImages[i]
	}
	var whichImage = Math.round(Math.random()*(p-1));
	
	function showImage(){
	if(whichImage==0){
	document.write('<a href ="links.aspx"><img src="'+theImages[whichImage]+'" border="0" width="416" height="347" alt="" /></a>');
	}
	else if(whichImage==1){
	document.write('<a href ="links.aspx"><img src="'+theImages[whichImage]+'" border="0" width="416" height="347" alt="" /></a>');
	}
	else if(whichImage==2){
	document.write('<a href ="links.aspx"><img src="'+theImages[whichImage]+'" border="0" width="416" height="347" alt="" /></a>');
	}
	else if(whichImage==3){
	document.write('<a href ="links.aspx"><img src="'+theImages[whichImage]+'" border="0" width="416" height="347" alt="" /></a>');
	}
	else if(whichImage==4){
	document.write('<a href ="links.aspx"><img src="'+theImages[whichImage]+'" border="0" width="416" height="347" alt="" /></a>');
	}
	else if(whichImage==5){
	document.write('<a href ="links.aspx"><img src="'+theImages[whichImage]+'" border="0" width="416" height="347" alt="" /></a>');
	}
	}*/
	
	function Photo(url)
	{
			var j=window.open("","jj","top=60, left=130,width=305,height=250,scrollbars=no,resizable=no,titlebar=no,menubar=no,toolbar=no,locationbar=no,location=no,status=no")
				with (j.document)
				{
					open();
					writeln ('<html><head><title>Photo</title></head><body topMargin="1" leftMargin="1" marginwidth="1" marginheight="1" onload="var imgHeight=document.all.xyz.height;var imgWidth=document.all.xyz.width; window.resizeTo((imgWidth+12),(imgHeight+80));return true;" marginwidth=1 marginheight=1 topmargin=0 leftmargin=0>');			
					writeln('<center><img border="0" name="xyz" src="' + url + '"></center>');
					/*writeln ('<center><img border="0" name="xyz" src='+ url +'></center>');*/
					
					close();
				}
	}
	
	function checkMaxLengthOnKeyPress(foEvent, foTextArea, foMaxlength)
{
    if(foEvent.charCode || window.event)
    {
        return foTextArea.value.length < foMaxlength;
    }
    else
    {
        return true;
    }
}

function checkMaxLengthOnBlur(foEvent, foTextArea, foMaxlength)
{
    if (foTextArea.value.length > foMaxlength)
    {
        foTextArea.value = foTextArea.value.substring(0, foMaxlength);
    }
}

//from www.a1javascripts.com
//pre loader
newimage0 = new Image();
newimage0.src = "images/link_home01.gif";
newimage1 = new Image();
newimage1.src = "images/link_home01_over.gif";

function floatsonly(e,txtvalue)
{
	var floatflag;
	if (e.keyCode) keycode=e.keyCode;
	else keycode=e.which;
	if(keycode==9 || keycode==46 || keycode==16 )
	{								//if the key is tab or delete or shiftkey
		return true;
	}
	if (keycode!=8)
	{ 
		//if the key isn't the backspace key (which we should allow).
		if(keycode==110 || keycode==190)
		{
			if(txtvalue.indexOf(".")==-1)
			{
				return true;
			}
			else
			{
				return false;
			}
		}
		if ((keycode<48||keycode>57) && (keycode<96||keycode>105)) //if not a number
		return false //disable key press
	}
}