function openWin(){
	var height = screen.height;
	var width = screen.width;
	var leftpos = width / 2 - 150;
	var toppos = height / 2 - 100;
	hwnd = window.open("/Jsp/join/join.jsp","join","statusbar=no,location=no,scrollbars=no,status=no,resizable=no,width=300,height=350,left=" + leftpos + ",top=" + toppos);
	hwnd.focus();
}

function bannerPop(letak,nama,lebar,tinggi)
{
	var height = screen.height;
	var width = screen.width;
	var leftpos = width / 2 - 150;
	var toppos = height / 2 - 100;
	hwnd = window.open(letak,nama,"statusbar=no,location=no,scrollbars=no,status=no,resizable=no,width="+lebar+",height="+tinggi+",left=" + leftpos + ",top=" + toppos);
	hwnd.focus();
}

function download(code, cate, filename, subject, seq) {
	var height = screen.height;
	var width = screen.width;
	var leftpos = width / 2 - 150;
	var toppos = height / 2 - 100;
	var URL = document.referrer;
	var nUrl = "/download.jsp?";
	var Param = 'code=' + code + '&cate=' + cate + '&file=' + filename + '&subject=' + subject + '&seq=' + seq;
	hwnd = window.open(nUrl+Param,"download", "width=250,height=280,status=no,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,left=" + leftpos + ",top=" + toppos);
	hwnd.focus();
}

function MPlay(subject, filename, cate) {
	var height = screen.height;
	var width = screen.width;
	var leftpos = width / 2 - 150;
	var toppos = height / 2 - 100;
	var nUrl = "/play.jsp?";
	var Param = 'subject=' + subject +'&file=' + filename +'&cate='+cate;
	hwnd = window.open(nUrl+Param,"review", "width=322,height=150,status=no,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,left=" + leftpos + ",top=" + toppos);
	hwnd.focus();
}

function mmsdown(code, cate, filename, subject, seq) {
	var height = screen.height;
	var width = screen.width;
	var leftpos = width / 2 - 150;
	var toppos = height / 2 - 300;
	var URL = document.referrer;
	var nUrl = "/mms/preview.jsp?";
	var Param = 'code=' + code + '&cate=' + cate + '&file=' + filename + '&subject=' + subject + '&seq=' + seq;
	hwnd = window.open(nUrl+Param,"mms", "width=225,height=450,status=no,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no,left=" + leftpos + ",top=" + toppos);
	hwnd.focus();
}
