/*New roundborder functions Laszlo Naszodi scriptwell.net */
function topRoundFrame() {//Displays the right and the bottom of the round border
  with (document) {
	writeln('<div class="roundBox">');
	writeln(' <div class="roundedge">');
	write  ('     <img src="images/topleft.png" style="vertical-align:text-top" ');
	write  ('         alt="/" /><img class="horizline" src="images/graydot.png" ');
	writeln('         style="vertical-align:text-top;" alt="." />');
	write  ('</div>');
	writeln('<div style="border-left:solid 1px #ccc; border-right:solid 1px #ccc;">');
  }//end with
} //end function topRoundFrame()

function bottomRoundFrame() {//Displays the right and the bottom of the round border
  with (document) {
	writeln('&nbsp;');
	writeln(' </div>');
	write ('<div class="roundedge"');
	write ('    style="background:url(images/bottomright.png) no-repeat top right">');
	write ('    <img src="images/bottomleft.png"');
	write ('        style="vertical-align:top" alt="/" /><img class="horizline"');
	write ('        src="images/graydot.png"');
	writeln('        style="vertical-align:bottom" alt="." />');
	writeln('  </div>');
	writeln('</div>');
  }//end with
} //end function bottomRoundFrame()

function RoundStyle(horizWidth, curveWidth){
/*if(isNull(curveWidth)) curveWidth=15;
if(isNull(horizWidth)) horizWidth=700;*/
  with (document) {
	writeln('<style media="screen" type="text/css">');
	writeln('.roundedge {width:100%; height:15px; line-height:100%}');
	writeln('.topleft {vertical-align:top}');
	writeln('.horizline {width:670px; height:1px}');
	writeln('.roundBox {width:700px; font-size:14px;');
	writeln('background: url(../images/topright.png) no-repeat top right}');
	writeln('</style>');
  }//end with
} //end function scriptRoundStyle()

RoundStyle();


function isNull(obj) {return (obj==null)||(obj==undefined);}

function dispRow0(curveWidth) {
if(isNull(curveWidth)) curveWidth=15;
  var temp = curveWidth - 1;
  with (document) {
	write('<table align="center" cellspacing="0" cellpadding="0" border="0">');
	write('<tr><td class="pad0" width="1"></td>');
	write(' <td class="pad0" width="'+temp.toString()+'"></td>');
	write(' <td class="pad0"></td>');
	write(' <td class="pad0" width="'+temp.toString()+'"></td>');
	write(' <td class="pad0" width="1"></td></tr>');
  }//end with
} //end function dispRow0()
function dispTopAndLeft() {//Displays the top and the left of the round border
  dispRow0();
  with (document) {
	write('<tr valign="top">');
	write(' <td class="pad0"  colspan="2"><img src="images/topleft.png" class="corner"></td>');
	write(' <td class="pad0"><img class="horizline"></td>');
	write(' <td class="pad0" colspan="2"><img src="images/topright.png" class="corner"></td>');
	write('</tr>');
	write('<tr>');
	write(' <td class="pad0" background="images/graydot.png" width="1"></td>');
	write(' <td class="pad0" colspan="3" align="left">');
  }//end with
} //end function dispTop()
function dispRightAndBottom() {//Displays the right and the bottom of the round border
  with (document) {
 	write(' </td>');
	write(' <td class="pad0" background="images/graydot.png" width="1"></td>');
	write(' </tr>');
	write('<tr valign="bottom">');
	write(' <td class="pad0" colspan="2"><img src="images/bottomleft.png" class="corner"></td>');
	write(' <td class="pad0"><img class="horizline"></td>');
	write(' <td class="pad0" colspan="2"><img src="images/bottomright.png" class="corner"></td>');
	writeln('</tr></table>');
  }//end with
} //end function dispRightAndBottom()
function scriptRoundStyle(horizWidth, curveWidth){//Not used; px's are missing
if(isNull(curveWidth)) curveWidth=15;
if(isNull(horizWidth)) horizWidth=660;
  with (document) {
	write('<style media="screen" type="text/css">');
	write('  .pad0 {padding-right:0}');
	write('  .horizline {width:' + horizWidth.toString() + ' auto; height:1;');
	write('      background: white url(images/graydot.png) repeat-x}');
	write('  .corner {width:'+curveWidth.toString()+'; height:'+curveWidth.toString()+';}');
	writeln('</style>');
  }//end with
} //end function scriptRoundStyle()

//scriptRoundStyle();

