are you a programmmer ? then fix it

hello guys, i am back with my new post.. here is a source code of javascript effect . but it can't work .if you are a good programmer then find an error and solve this ! 
put a source code with solution in comment box or only just display an error which part of code will needs to be change ..


<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style>
.mac1{

position: absolute;
left: 100px;
top: 200px;
background-color: #f1f1f1;
width: 180px;
padding: 10px;
color: black;
border: #0000cc 2px dashed;
display:block;
}

</style>
<script >

function setVisiability( id ,visibility)
{
document.getElementById(id).style.display = visiblility;
}

</script>
</head>

<body>

<input type=button name=mac value='Show Layer'  onclick="setVisibility('mac1' ,'inline');" ;>
<input type=button name=mac value='Hide Layer'  onclick="setVisibility('mac1','none');";>

<div id="mac1"> logian here </div>
</body>

</html>

thanks for visit . stay turned . new post available soon . 
if you like this then share it to your friends . 
keep visiting  ANICISTAN.
Anic_an_engineer

Hi, I am Anic an IT Professional . I like to share my knowledge and experience. Thanks for visiting my site.

Please Select Embedded Mode To Show The Comment System.*

أحدث أقدم