// check we are in the navigation frameset
function inNavFrameset() {
	if (top.location != self.location) { // we are in a frameset
		if (parent.topFr) { // we are in the nav frameset
			return true;
		}
	}
	return false;
}

//openPopupWin( URL as string, width as integer, height as integer, scrollbars as boolean, toolbar as boolean, resizeable as boolean
function openPopupWin(URL, width, height, scrollbars, menubar, toolbar, status, resizable) {
	detailsString = "";
	if (width!=""){ detailsString = detailsString + "width=" + width}
	detailsString = detailsString + " ,";
	if (height!=""){ detailsString = detailsString + "height=" + height}
	detailsString = detailsString + " ,";
	if (scrollbars){ detailsString = detailsString + "scrollbars=yes" }
	detailsString = detailsString + " ,";
	if (toolbar){ detailsString = detailsString + "toolbar=yes" }
	detailsString = detailsString + " ,";
	if (menubar){ detailsString = detailsString + "menubar=yes" }
	detailsString = detailsString + " ,";
	if (status){ detailsString = detailsString + "status=yes" }
	detailsString = detailsString + " ,";
	if (resizable){ detailsString = detailsString + "resizable=yes"}
	
    // create non repeatable id 
    var current_date = new Date(); 
    var uniqueID = "" + current_date.getSeconds() + current_date.getMinutes() + current_date.getHours(); 
    newPopupWin = window.open(URL,uniqueID,detailsString); 
}



function openPopupOnly(URL) {
	newPopupWin = window.open(URL,'popup','width=180,height=50');
}

function openPopupChart(URL) {
	newPopupWin = window.open(URL,'popup','width=680,height=560,scrollbars,resizable=yes');
}
function openPopupArch(URL) {
	newPopupWin = window.open(URL,'popup','width=750,height=500,scrollbars,resizable=no');
}

function openPopupBigArch(URL) {
	newPopupWin = window.open(URL,'popup','width=900,height=600,scrollbars,resizable=yes');
	
}

function openPopupMenue(URL) {
	newPopupWin = window.open(URL,'popup','width=750,height=500,menubar,scrollbars,resizable=yes');
}

function doFormAction(theForm, theUrl) {
	eval('document.' + theForm + '.action=\"' + theUrl + '\"');
	eval('document.' + theForm + '.submit()');
}


function musicpopup(url)
{
	window.open(url, "popup", "dependent=yes,location=no,menubar=no,resizable=no,status=no,title='1000and1',toolbar=no,width=180,height=50");
}

function huweitatpopup(url)
{
	window.open(url, "popup", "dependent=yes,location=no,menubar=no,resizable=no,status=no,title='1000and1 Ghost City',toolbar=no,width=800,height=650");
}

function peoplepopup(url)
{
	window.open(url, "popup", "dependent=yes,location=no,menubar=no,resizable=no,status=no,title='1000and1',toolbar=no,width=700,height=650");
}

function eclipspopup(url)
{
	window.open(url, "popup", "dependent=yes,location=no,menubar=no,resizable=no,status=no,title='Eclips',toolbar=no,width=600,height=630");
}

function dinapopup(url)
{
	window.open(url, "popup", "dependent=yes,location=no,menubar=no,resizable=no,status=no,title='Dina2005',toolbar=no,width=600,height=630");
}
