// The name of the pop-up-window. Do not change it.
var popwindow
// The heiht of your pop-up-window (pixels)
var popwindowwidth=350
// The width of your pop-up-window (pixels)
var popwindowheight=180
// Distance to the top margin of the big window.
var popwindowtop=50
// The URL of the HTML-file that contains the content of the pop-up-window
var popwindowURL="/reg/signup.html"
// Standstill-time (seconds)
var waitingtime=10
// Configure ths speed of the pop-up-window
var pause=20
var step=40
// Do not change this variable
var popwindowleft=-popwindowwidth-50
// Do not change this variable
var marginright
// Do not change this variable
var pagecenter
// Do not change this variable
var timer
waitingtime= waitingtime*1000
function showWindow() {
	var knE=getCookie("QuickBooks");
	//var knE=getCookie("QQQ");
	if(knE==null)
	{
	if (document.all) {
		marginright = screen.width+50
	}
	if (document.layers) {
		marginright = screen.width+50
	}
	pagecenter=Math.floor(marginright/2)-Math.floor(popwindowwidth/2)
	popwindow = window.open(popwindowURL, "popwindow", "toolbar=no,width="+popwindowwidth+",height="+popwindowheight+",top="+popwindowtop+",left="+(pagecenter)+"");
//	movewindow()
	}
}

function getCookie(Name) 
{
	var search = Name + "="
	if (document.cookie.length > 0) 
	{
		offset = document.cookie.indexOf(search)
		if (offset != -1) 
		{
			offset += search.length
			end = document.cookie.indexOf(";", offset)
			if (end == -1)
				end = document.cookie.length
			return unescape(document.cookie.substring(offset, end)) 
		}
	}
}
