/*
....Common Functions....
*/
		
var oldColor

function Row_onMouseOver(objRow)
{
	oldColor = objRow.bgColor
	if (oldColor == "")
		objRow.bgColor = "#EEEEEE"
}

function Row_onMouseOut(objRow)
{
	objRow.bgColor = oldColor
}


/* OPEN WINDOW FUNCTION */
function openWindow(sAddress, iWidth, iHeight, bScroll, bResize, bStatus) {
  if (objImageWin)
		objImageWin.close();
  
  var xPos = parseInt((screen.availWidth/2) - (iWidth/2));			
  var yPos = parseInt((screen.availHeight/2) - (iHeight/2));
  var settings = 'height=' + iHeight + ',width=' + iWidth + ',top=' + yPos + ',left=' + xPos + ',heading=no,topbar=no,toolbar=no,location=no,directories=no,status=' + bStatus + ',menubar=no,scrollbars=' + bScroll + ',resizable=' + bResize + ',border=no';
  var objImageWin = window.open(sAddress,objImageWin,settings);
  objImageWin.focus();
}
/************************/

/* Print Friendly Version Window */
function showPFVersion(URL) {
	openWindow("pfVersion.aspx?P=" + URL, 660, 500, 1, 0, 1);
}
/*********************************/

/************************/

/* Delivery Schedule Window */
function showDeliverySchedule() {
	openWindow("deliverySchedule.aspx", 540, 600, 1, 0, 1);
}
/*********************************/

/* Legal Window */
function showLegal() {
	openWindow("legal.aspx", 540, 600, 1, 0, 1);
}
/*********************************/

/* Terms of sale Window */
function showTermsOfSale() {
	openWindow("termsofsale.aspx", 540, 600, 1, 0, 1);
}
/*********************************/

/* Privacy Window */
function showPrivacy() {
	openWindow("privacy.aspx", 540, 600, 1, 0, 1);
}
/*********************************/


/* Bookmark site */
function bookmarkSite() {
	window.external.AddFavorite('http://www.buyprinters.com.au', 'buyprinters - the printer specialists');
}
/*****************/


/* Email Friend Window */
function showEmailFriend() {
	openWindow("emailFriend.aspx", 540, 330, 0, 0, 0);
}
/*********************************/



function testCookies() {
   var tmpcookie = new Date();
   chkcookie = (tmpcookie.getTime() + '');
   document.cookie = "chkcookie=" + chkcookie + "; path=/";
    if (document.cookie.indexOf(chkcookie,0) < 0) {
			alert('no cookies');
      //window.location = 'nocookies.html';
      }
    else {
			alert('cookies');
      //window.location = 'cookies.html';
    }
 }

//testCookies();
