// mockup-library functions 2.1 - 061903



// centered popup

function NewWindow(mypage, myname, w, h, scroll) {

	var winl = (screen.width - w) / 2;

	var wint = (screen.height - h) / 2;

		winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'

		win = window.open(mypage, myname, winprops)

	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }

}



// close popups

function closeWindow() {

    top.window.close();

}



// close remote popups

function closeRemote() {

timer = setTimeout('top.window.close();', 10);

}



// open URL for buttons in popups

function openPage(url) {

top.location = url;

}



// open URL for buttons into entire base pages

function loadParent(url) {

parent.location = url;

}



// open URL for buttons into the content area base page

function loadSelf(url) {

self.location = url;

}



// open URL for buttons into the content area of specified frame name

function loadFrame(name,url) {

	parent.frames[name].location = url;

}



