function newWindow(sInUrl, iInWidth, iInHeight, sInName, iTop, iLeft){

	if ( typeof(iInWidth) == "undefined" ) iInWidth = 1024;
	if ( typeof(iInHeight) == "undefined" ) iInHeight = 650;
	if ( typeof(sInName) == "undefined" ) sInName = "_blank";

	if ( typeof(iTop) == "undefined" ) iTop = (document.body.offsetHeight) / 2 - ( iInHeight / 2 );
	if ( typeof(iLeft) == "undefined" ) iLeft = (document.body.offsetWidth) / 2 - ( iInWidth / 2 );
	
	var oPopup;

/*	if (oPopup) {
		if (oPopup.close) {	
			oPopup.close();
		}
	}*/

	oPopup = window.open("about:blank", sInName,'top='+iTop+',left='+iLeft+',height='+iInHeight+',width='+iInWidth+',resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no');
	oPopup.document.write("<html><head><title>Αγοράζω Online Ο.Ε.</title><meta http-equiv='Content-Language' content='el'><meta http-equiv='Content-Type' content='text/html; charset=windows-1253'><LINK href='../css/main.css' type='text/css' rel='stylesheet'></head><body><table width='100%' height='100%' class='mainWrapper'><tr><th align='center' valign='middle'>Αγοράζω Online Ο.Ε.</th></tr><tr><td align='center' valign='middle'>Παρακαλώ περιμένετε...</td></tr></table></body></html>");
	oPopup.focus();
	oPopup.location = sInUrl;
//	if ( arguments.length < 5 ) resizeWindow(oPopup,iInWidth,iInHeight);
}

//function resizeWindow(o,w,h){
//	if ( typeof(w) == "undefined" ) w = 1024;
//	if ( typeof(h) == "undefined" ) h = 650;

//	l = (screen.availWidth / 2) - (w / 2);
//	t = (screen.availHeight / 2) - (h/ 2);

//	o.resizeTo(w,h);
//	o.moveTo(l,t);
//	o.resizeTo(w,h);
//	registerEvent("onload", "_resizeWindow("+o+","+w+","+h+")");
//}

/*Internet Explorer bug correction*/
//function _resizeWindow(o,w,h) {
//	l = (screen.availWidth / 2) - (w / 2);
//	t = (screen.availHeight / 2) - (h/ 2);
//	top.o.resizeTo(w,h);
//	top.o.moveTo(l,t);	
//}
