/*new window links*/
function externalLinks(){
    if (!document.getElementsByTagName) return;
    
    var anchors = document.getElementsByTagName("a");
    
    for (var i=0; i<anchors.length; i++){
        var anchor = anchors[i];
        if(anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") {
            anchor.target = "_blank";
        }
    }
}
/*show hide div*/
function s_h(s1,s2){
    document.getElementById("zamform").style.display=s1;
    document.getElementById("sendform").style.display=s2;
}

function OpenWindow(url,width,height) {
	//var left = parseInt((screen.availWidth/2) - (width/2));
	//var top = parseInt((screen.availHeight/2) - (height/2));
    var left=10;
    var top=10;
    var windowFeatures = "width=" + width + ",height=" + height + 
        ",status=no,resizable=no,scrollbars=no,left=" + left + ",top=" + top + 
        ",screenX=" + left + ",screenY=" + top;
    wind = window.open(url, "subWind", windowFeatures);
    wind.focus();	
}
function ShowInfo(img,layer) {
	var info=document.getElementById(layer);
	if(info.className=='none')  {
		img.src='img/arr_ver_up.gif';
		info.className='block';
	} else {
		img.src='img/arr_ver_down.gif';
		info.className='none';
	}
}
function ac() {
	var ac = document.getElementById("reg");
	if(ac.checked) {
		document.getElementById("send").disabled='';
	} else {
		document.getElementById("send").disabled='disabled';
	}
	
}	