function show_list(parName){

	var listname	
	var list
	
		
	listname = "Sub_"+parName;
	list     = document.all(listname).style;
	
	if (list.visibility != "hidden"){
		document.all("Sub_"+parName).style.visibility  = "hidden";
		list.position 							       = "absolute"; 
		list.visibility       				           = "hidden";
	
	}else{
		document.all("Sub_"+parName).style.visibility  	= "visible";		
		list.position 							   		= "relative"; 
		list.visibility   					            = "visible";
	 }
}


function popUp(link,w,h){
	window.open(link,'Orbim','width='+w+',height='+h+',scrollbars=0,resizable=1');
}
function popUp2(link,w,h){
	window.open(link,'Orbim','width='+w+',height='+h+',scrollbars=1,resizable=1');
}

function popWin(link){
    var full_path = link;
    var winstr = "";
    winstr+= '<html><head>';
    winstr+= '<title>Orbim</title>';
    winstr+= "<"+"SCRIPT>\n";
    winstr+= "function specialInit()\n";
    winstr+= "{\n";
    winstr+= "if (document.all || document.layers)\n";
    winstr+= "window.resizeTo(document.images[0].width+25 , document.images[0].height+40);\n";
    winstr+= "}\n";
    winstr+= "</"+"SCRIPT>\n";
    winstr+= "</head>\n";
    winstr+= "<BODY leftmargin=0 topmargin=0 onLoad='specialInit();'>\n";
    winstr+= '<center>';
    winstr+= '<img src=\"'+full_path+'\" vspace=\"5\">';
    winstr+= '</center>';
    winstr+= '</body>';
    winstr+= '</html>';  
        
    galeriWindow = window.open('', 'orbim', 'width=600,height=300,scrollbars=0,resizable=1');
    galeriWindow.document.open();
    galeriWindow.document.write(winstr);
    galeriWindow.document.close();
}


function onay(url){
	if (confirm("Silmek istediğinizden emin misiniz?")) {
			document.location.href = url ;
	}
}


var checkflag = "false";
function check(field) {
	if (checkflag == "false") {
		for (i = 0; i < field.length; i++) {
			field[i].checked = true;
		}
		checkflag = "true";
		return "Hiçbirini Seçme"; 
	}else{
		for (i = 0; i < field.length; i++) {
			field[i].checked = false; 
		}
		checkflag = "false";
		return "Hepsini Seç"; 
	}
}
