<!--
//position mini window in the center of the screen
function openWindow(page,width,height) {
  
	var winWidth = width;
	var winHeight = height;
	var posLeft = (screen.availWidth - winWidth) / 2;
	var posTop = (screen.availHeight - winHeight) / 2;
	var winInfo = 'width=' + winWidth + ',height=' + winHeight + ',left=' + posLeft + ',top=' + posTop + ',location=no,menubar=no,toolbar=no,status=no,scrollbars=yes,resizable=yes';

  var fonelaunch = window.open(page, 'fonelaunch', winInfo);
  
	fonelaunch.moveTo(posLeft,posTop);
    fonelaunch.focus(); 
  }

function openWindowComments(page,name,width,height) {
	var winWidth = width;
	var winHeight = height;
	//var posLeft = (screen.availWidth - winWidth) / 2;
	//var posTop = (screen.availHeight - winHeight) / 2;
	var winInfo = 'width=' + winWidth + ',height=' + winHeight + ',location=no, menubar=no, toolbar=no, status=no, scrollbars=no, resizable=yes';
	var fonelaunch = window.open(page, name, winInfo);
  
	//fonelaunch.moveTo(posLeft,posTop);
    fonelaunch.focus();
}


function openForgotPassword(page, name, width, height) {

	var winWidth = width;
	var winHeight = height;
	
    var posLeft = (screen.availWidth - winWidth) / 2;
	var posTop = (screen.availHeight - winHeight) / 2;
    
	var winInfo = 'width=' + winWidth + ',height=' + winHeight + ',location=no, menubar=no, toolbar=no, status=no, scrollbars=no, resizable=no';

	var win = window.open(page, name, winInfo);
  
	win.moveTo(posLeft,posTop);
    
    win.focus();
    
}


function openStatusWindow(page, name) {	
	
	var winInfo = 'width=450, height=570,location=no, menubar=no, toolbar=no, status=no, scrollbars=yes, resizable=yes';
	var fonelaunch = window.open(page, name, winInfo);
      	
    fonelaunch.focus();
}
  
function confirmation(msg, loc) {
  today = new Date();
  
  document.write("<body bgcolor=FFFFFF");
  alert("You have succesfully submitted a new " + msg + ".\nThe data will be reviewed and then posted to the live site!\n\nTime Stamp: " + today.toGMTString());
  window.location = loc;
  }



function setLocalTime() {  

    // create Date object with the current local date
    var theDate = new Date();
    
    var delimiter = ",";
    
    // assemble date as a comma-del string
    var temp = getFullYear(theDate) + delimiter + 
                (theDate.getMonth()+1) + delimiter +
                theDate.getDate() + delimiter +
                theDate.getHours() + delimiter +
                theDate.getMinutes();	
    
    // alert (temp);
    
    document.frmLogin.hidTime.value = temp;
}


function getFullYear(g) {
    var y = g.getYear();
    
    // accomodate all browser/JS version
    if (y < 1000) {
        y += 1900;
    }
    return y;
}
  
          
//to make another window open from the mini & also close the mini - add this to the hyperlink
//<a href="#" onclick="window.open('http://www.ace-quote.com/signup/buyers.asp');window.self.close();"> 
//<font size="2">click here</font></a></font>



// <a HREF="Javascript:openWindow()">Enter</a>
//-->