/******************Time*******************/

function ptomarTime() {
  now=new Date();
  hour=now.getHours();
  min=now.getMinutes();
  sec=now.getSeconds();

if (min<=9) { min="0"+min; }
if (sec<=9) { sec="0"+sec; }
if (hour>12) { hour=hour-12; add="pm"; }
else { hour=hour; add="am"; }
if (hour==12) { add="pm"; }

time = ((hour<=9) ? "0"+hour : hour) + ":" + min + ":" + sec + " " + add;

if (document.getElementById) { 
document.getElementById("theTime").innerHTML = time; 
}

else if (document.layers) {
 document.layers.theTime.document.write(time);
 document.layers.theTime.document.close(); }

setTimeout("ptomarTime()", 1000);
}
window.onload = ptomarTime;


/*****************JavaScript***********************/

/****

<script lang=javascript>

//open URLs**************

var wind;
function showurl(showWin)
{

openWin=document.getElementById(showWin);

openWinH=screen.availHeight-450;
openWinW=screen.availWidth-450;
openWinF='height=400,width=400,left='+openWinW+',top=100,status=0,toolbar=0,location=0,directories=0,menubar=0,scrollbars=0,resizable=0,titlebar=0';
wind=window.open(openWin,openWin,openWinF);

}

//hide URLs**************
function hideurl()
{

wind.close();
}
</script>

*******/

/*

<script lang=javascript>

//search menu********************

document.onclick=search;
function search(e){
var target = (e && e.target) || (event && event.srcElement);
var obj = document.getElementById('googlesearch');

var obj2 = document.getElementById('ss0');
var obj3 = document.getElementById('ss1');
var obj4 = document.getElementById('sbi');
var obj5 = document.getElementById('sbb');
var obj6 = document.getElementById('searchDiv1');
var obj7 = document.getElementById('search');

if(target!=obj&&target!=obj2&&target!=obj3&&target!=obj4&&target!=obj5&&target!=obj6&&target!=obj7)
{obj.style.display='none'}

else if(target==obj7)
{obj.style.display='block'}

</script>
*/

/*****************JavaScript End**********************/



/***************You are here********************/
/*call function youarehere(document.location.href)
function youRhere(URhere)

{


echo '<script lang=javascript>
var curHREF=document.location.href;
var curPlace, homeHREF="http://www.ptomar.com";

switch(curHREF)
{
case "http://www.ptomar.com/index.php":
case "http://ptomar.com/index.php":
case "ptomar.com/index.php":
curPlace="home";
break;
case "http://www.ptomar.com/about.php":
case "http://ptomar.com/about.php":
case "ptomar.com/about.php":
curPlace="about";
break;
case "http://www.ptomar.com/search.php":
case "http://ptomar.com/search.php":
case "ptomar.com/search.php":
curPlace="search";
break;
case "http://www.ptomar.com/contact.php":
case "http://ptomar.com/contact.php":
case "ptomar.com/contact.php":
curPlace="contact";
break;
case "http://www.ptomar.com/blog/index.php":
case "http://ptomar.com/blog/index.php":
case "ptomar.com/blog/index.php":
curPlace="blog";
break;
default:
curPlace="search";
}
if(curPlace!="home")
document.write("You are here: <a href="+homeHREF+">home</a> || <a href="+curHREF+">"+curPlace+">></a>");
else
document.write("You are here: <a href="+curHREF+">"+curPlace+">></a>");
</script>
';

}


<script lang=javascript>
if (document.url='http://www.ptomar.com/includes/include_main.php')
document.url='http://www.ptomar.com/includes/index.php';

</script>

*/
