function fix_input(){
  InputArray = document.getElementsByTagName("input");
  for (i=0; i<InputArray.length; i++){
    if (InputArray[i].type == "checkbox" || InputArray[i].type == "radio" || InputArray[i].type == "image"){
      InputArray[i].style.border = "none";
    }
  }
}
function FlashObject(w, h, src, versia, color)
{
	if(w == null)
		w = 100;
	if(h == null)
		h = 100;
	if(versia == null)
		versia = 6;
	if(color == null)
		color = '#ffffff';
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=' + versia + ',0,0,0" width="' + w + '" height="' + h + '" id="country" align="middle">');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="movie" value="' + src + '" />');
document.write('<param name="menu" value="false" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="bgcolor" value="' + color + '" />');
document.write('<embed src="' + src + '" quality="high" menu="false" bgcolor="' + color + '" width="' + w + '" height="' + h + '" name="country" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
}
var w2;
function wpopen(hh)
{
w=window.open(hh, "wc1", "toolbars:no; scrollbars=1; width=710; height=550");
w.focus();
}
function wopen_size(href, w, h)
{
w=window.open(href, "wc1", "toolbars:no; scrollbars=1; width=" + w + "; height=" + h + "");
w.focus();
}
function image_id(w, h, n)
{
	/*parent.document.getElementById("fotogalery_pic").src="/images/galery1_attach_large_image_" + n + ".gif";*/
	parent.document.getElementById("fotogalery_pic_fon").background="/images/galery1_attach_large_image_" + n + ".gif";
	parent.document.getElementById("fotogalery_pic_up").width="" + w + "";
	parent.document.getElementById("fotogalery_pic_up").height="" + h + "";
	
}
function galeri_popap(w, h, _id)
{
	
	var www = "/src/popup_galeri.aspx?_id="+_id+"&w="+w+"&h="+h;
	if(w2) w2.close();
	w2=window.open(www, "wc1", "toolbars=no; scrollbars=1; width="+(w+50)+"; height="+(h+131));
	w2.focus();
}
function popap_image(w, h, url_pic)
{
	var www = "/src/popup_image.aspx?url_pic="+url_pic+"&w="+w+"&h="+h;
	if(w2) w2.close();
	w2=window.open(www, "wc1", "toolbars=no; scrollbars=1; width="+(w+50)+"; height="+(h+131));
	w2.focus();
}
var hPopupWindow = null;
function wopen(url, nWidth, nHeight, strAddParams, strPopupName)
{
	var nScreenWidth = screen.availWidth;
	var nScreenHeight = screen.availHeight;
	var nPosLeft = (nScreenWidth - nWidth - 10) / 2;
	var nPosTop = (nScreenHeight - nHeight - 29) / 2;
	strPopupName = (strPopupName != null) ? strPopupName : "p3";
	hPopupWindow = window.open(url, strPopupName, "toolbar=no,width=" + nWidth + ",height=" + nHeight + ",left=" + nPosLeft + ",top=" + nPosTop + (strAddParams != null && strAddParams != "" ? "," + strAddParams : ""));
	hPopupWindow.focus();
	return false;
}
function RestoreEscapeString(str)
{
	str = unescape(str)
	str = str.replace(/&#37;/gi, '%');
	str = str.replace(/&#39;/gi, "'");
	str = str.replace(/&#61;/gi, "=");
	str = str.replace(/&#92;/gi, "\\");
	str = str.replace(/&#96;/gi, "`");
	str = str.replace(/&quot;/gi, '\"');
	str = str.replace(/&lt;/gi, '<');
	str = str.replace(/&gt;/gi, '>');
	return str.replace(/&amp;/gi, '&');
}
//----------------------- Check Email -----------------------------------
function checkEmail(strEmail)
{
	return true;
}
