/*onload = function(){ 
var oCells = document.getElementById('tab').getElementsByTagName('td');//cells' collection 
for(var i=0;i<oCells.length;i++){ 
var kids = oCells[i].childNodes;//childNodes collection of each cell 
    for(var j=0;j<kids.length;j++){ 
        if((kids[j].nodeType==1)&&((kids[j].getAttribute('type')=='radio') || (kids[j].getAttribute('type')=='checkbox'))){//if childNode is a tag and if the type is checkbox 
        oCells[i].onclick=function(){//sets the event handler 
        if(this.getElementsByTagName('input')[0].checked==false){//switches checked/unchecked 
        this.getElementsByTagName('input')[0].checked=true; 
        } 
        else{ 
        this.getElementsByTagName('input')[0].checked=false; 
        } 
        } 
        } 
    } 
} 
} */


function sureForm(curr_data){
	if (confirm('Are you sure to delete this data :  '+curr_data+' ?')){
		location.href = 'admin_del.php?godel='+katestr;
	}
	else{
		return false;
	}
	}
	
function sureRemove(curr_data){
	if (confirm('Are you sure to remove this data :  '+curr_data+' from this article ?')){
		location.href = 'admin_del.php?godel='+katestr;
	}
	else{
		return false;
	}
	}
	
	
function sureRemoveTags(curr_data){
	if (confirm('Are you sure to remove this data :  '+curr_data+' from this tags ?')){
		location.href = 'admin_del.php?godel='+katestr;
	}
	else{
		return false;
	}
	}
	
	

function textCounter(textarea, counterID, maxLen,areacolor) {
	cnt = document.getElementById(counterID);
	if (textarea.value.length > maxLen)
	{
		document.getElementById(areacolor).style.backgroundColor= "#FFCC00";
	}
		cnt.innerHTML = 0 + textarea.value.length;
	}
	


var G5=window,R5=document;function MakeIt(C6){var txt='';txt+=C6.html.value+'\r\n';txt+=C6.type.value+C6.size.value+C6.weight.value+C6.fcolor.value+'\r\n';txt+=C6.style.value+'\r\n';txt+=C6.java.value+'\r\n';txt+=C6.bg1.value+'\r\n';txt+=C6.java2.value+'\r\n';txt+='which.style.background='+C6.x.value+C6.bg1a.value+C6.x.value+'\r\n';txt+=C6.java3.value+'\r\n';txt+=C6.table.value+'\r\n';txt+='<td class="menu" bordercolor="black" id="choice1" style="cursor:hand;background-color:'+C6.bg1a.value+C6.click.value+C6.page1.value+C6.adas.value+C6.url1.value+C6.end.value+'\r\n';txt+=C6.div.value+C6.description1.value+C6.tdtr.value+'\r\n';txt+='<td class="menu" bordercolor="black" id="choice2" style="cursor:hand;background-color:'+C6.bg1a.value+C6.slick.value+C6.page2.value+C6.klinst.value+C6.url2.value+C6.end.value+'\r\n';txt+=C6.div.value+C6.description2.value+C6.tdtr.value+'\r\n';txt+='<td class="menu" bordercolor="black" id="choice3" style="cursor:hand;background-color:'+C6.bg1a.value+C6.rick.value+C6.page3.value+C6.philly.value+C6.url3.value+C6.end.value+'\r\n';txt+=C6.div.value+C6.description3.value+C6.tdtr.value+'\r\n';txt+='<td class="menu" bordercolor="black" id="choice4" style="cursor:hand;background-color:'+C6.bg1a.value+C6.clicked.value+C6.page4.value+C6.rbust.value+C6.url4.value+C6.end.value+'\r\n';txt+=C6.div.value+C6.description4.value+C6.tdtr.value+'\r\n';txt+='<td class="menu" bordercolor="black" id="choice5" style="cursor:hand;background-color:'+C6.bg1a.value+C6.slicker.value+C6.page5.value+C6.cruch.value+C6.url5.value+C6.end.value+'\r\n';txt+=C6.div.value+C6.description5.value+C6.tdtr.value+'\r\n';txt+=C6.finish.value+'\r\n';C6.code.value=txt;}

function openWindowTitle(curr,theURL,winName,features) { //v2.0
var str_exm;
str_exm = 'exm'+curr;



curr_fr = document.getElementById(str_exm).value;
theURL = theURL+'?exm='+curr_fr;


  window.open(theURL,winName,features);
}
