// by hawy php - www.hawyphp.com ;)

var x=0;
function MoreLinks(){
if(x == 0){
	document.getElementById('links').innerHTML="<textarea name='links' cols='50' rows='10' ></textarea>";
	document.getElementById('linktype').value="0";
	document.getElementById('change').value="Reset";
	document.getElementById('submitL').value="Cut Links";
}else{
	document.getElementById('links').innerHTML="<input type='text' name='link' size='45'  />";
	document.getElementById('linktype').value="1";
	document.getElementById('change').value="Cut More Links";
	document.getElementById('submitL').value="Cut Link";
}
	x = (x == 0)?1:0;
}



function showLink() { 
    hawy_code=document.getElementById('hawyphp_code').value;
  /*
    text ="<form action='index.php?a=2&c="+hawy_code+"' method='POST'><input type='hidden' name='thecode' value='$code' /><input type='submit' value='Click here' style='background:none;border:0px;cursor:pointer;color: #4f8e86;font-size:1.5em;line-height: 1.4em;' /></form>" ;
    */
    
    text ="<form action='2-"+hawy_code+"' method='POST'><input type='hidden' name='thecode' value='$code' /><input type='submit' value='Click here to get the shorten link .. ' style='background:none;border:0px;cursor:pointer;color: #4f8e86;font-size:1.5em;line-height: 1.4em;' /></form>" ;
   
    document.getElementById('cont2').innerHTML = text;
    document.getElementById('cont').innerHTML = "";
}


/****************************************************
     Author: Eric King
     Url: http://redrival.com/eak/index.shtml
     This script is free to use as long as this info is left in
     Featured on Dynamic Drive script library (http://www.dynamicdrive.com)
****************************************************/
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}

