
/* Js for home page

*/
function clear_text()
{
if (document.form1.email.value == "Your e-mail here")
document.form1.email.value = "";
}
function popup(mylink, windowname)
{
if (!window.focus)return true;
var href;
if (typeof(mylink) == 'string')
        href=mylink;
else
        href=mylink.href;

        //alert(href)
	window.open(href, windowname,'top=50,left=100,screenX=50,screenY=100,width=800,height=600,scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrolling=1,resizable=no');
return false;
}
function bookshop(mylink, windowname)
{
if (!window.focus)return true;
var href;
if (typeof(mylink) == 'string')
        href=mylink;
else
        href=mylink.href;

var w=window.outerWidth;if (isNaN(w)) w = document.body.clientWidth;if (isNaN(w))	w = 0;var h = window.outerHeight;if (isNaN(h)) h = document.body.clientHeight;if (isNaN(h)) h = 0;

	window.open(href, windowname,'width='+w+',height='+h+',top=2,scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrolling=1,resizable=yes,left=0,screenX=0,top=0,screenY=0');
return false;
}
function openmediainfo(mylink)
{
var windowname='mediainfo';
if (!window.focus)return true;
var href;
if (typeof(mylink) == 'string')
        href=mylink;
else
        href=mylink.href;

var w=window.outerWidth;if (isNaN(w)) w = document.body.clientWidth;if (isNaN(w))	w = 0;var h = window.outerHeight;if (isNaN(h)) h = document.body.clientHeight;if (isNaN(h)) h = 0;

	window.open(href, windowname,'width='+w+',height='+h+',top=2,scrollbars=yes,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrolling=1,resizable=yes,left=0,screenX=0,top=0,screenY=0');
return false;
}
function largewindow(mylink, windowname)
{
if (!window.focus)return true;
var href;
if (typeof(mylink) == 'string')
        href=mylink;
else
        href=mylink.href;

        //alert(href)
	window.open(href, windowname,'width=920,height=640,scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrolling=1,resizable=yes');
return false;
}
function p(url)
{
	top.location.href=url;
	return false;
}

function openw(url,name,width,height){
	var isMinNS4 = (navigator.appName.indexOf("Netscape") >= 0 &&	parseFloat(navigator.appVersion) >= 4) ? 1 : 0;
	var isMinIE4 = (document.all) ? 1 : 0;

	var subwin;
	var feature;
		if (height > 600) {
			height = 600;
			scroll_value = 'yes';
		}
		else{
			scroll_value = 'yes';
		}
	if (isMinNS4) {
		width += 33;
		feature = "menubar=no,resizable=no,scrollbars=yes,status=no,toolbar=no,width=" + width + ",left=45,top=15,height=" + height ;
	}else{
		feature = "menubar=no,resizable=no,scrollbars="+ scroll_value +",status=no,toolbar=no,width=" + width + ",left=45,top=15,height=" + height ;
	}

	subwin = window.open(url, name,feature);
	subwin.focus();
}


/* endjs for home page */


