function createWindow(what) {
    var URL = what.URL.value;

    var windowName = what.windowName.value;

    var features =
        'width='        + what.width.value +
        ',height='      + what.height.value +
        ',directories=' + (what.directories.checked - 0) +
        ',location='    + (what.location.checked - 0) +
        ',menubar='     + (what.menubar.checked - 0) +
        ',scrollbars='  + (what.scrollbars.checked - 0) +
        ',status='      + (what.status.checked - 0) +
        ',toolbar='     + (what.toolbar.checked - 0) +
        ',resizable='   + (what.resizable.checked - 0);

    child = window.open (URL, windowName, features);
    if ( !child ) {
    	alert('We have detected that you are using popup blocking software and it is blocking popup with demo store');
    }
	if (child.opener == null) child.opener = window; 
	child.opener.name = "algozone_pop";
}

function createWindowURL(URL, width, height, name) {
    var windowName = name;

    var features =
        'width= ' + width +
        ',height= ' + height + 
        ',scrollbars=1' +
        ',menubar=no' + 
        ',toolbar=no'  + 
        ',resizable=1,copyhistory=no';

    child = window.open(URL, windowName, features);
    if ( !child ) {
    	alert('We have detected that you are using popup blocking software and it is blocking popup with demo store');
    }
	if (child.opener == null) child.opener = window; 
	child.opener.name = "algozone_pop";
}

function popupWindow(url) {
  child = window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=550,height=450,screenX=150,screenY=150,top=150,left=150')
  if ( !child ) {
    	alert('We have detected that you are using popup blocking software and it is blocking popup with demo store');
    }
	if (child.opener == null) child.opener = window; 
	child.opener.name = "algozone_pop";	
}

var bV=parseInt(navigator.appVersion);
NS4=(document.layers) ? true : false;
IE4=((document.all)&&(bV>=4))?true:false;
ver4 = (NS4 || IE4) ? true : false;

function expandIt(el) {
	if (!ver4) return;
	if (IE4) {expandIE(el)} else {expandNS(el)}
}
function expandIE(el) { 
	whichEl = eval(el + "Child");
	if (whichEl.style.display == "none") {
		whichEl.style.display = "block";
	}
	else {
		whichEl.style.display = "none";
	}
}
function expandNS(el) {
	whichEl = eval("document." + el + "Child");
	if (whichEl.visibility == "hide") {
		whichEl.visibility = "show";
	}
	else {
		whichEl.visibility = "hide";
	}
}
