<Script language = "JavaScript" type = "text/JavaScript">
Function hidelayer ()
{
VaR layer = Document. getelementbyid ("popimagelayer ");
Layer. style. Visibility = 'ddd ';
}
Function dispear (){
VaR layer = Document. getelementbyid ("popimagelayer ");
If (layer. style. width> 0) & (layer. style. Height> 0 )){
Layer. style. Width-= 1;
Layer. style. Height-= 1;
}
Else {
Layer. style. Visibility = 'ddd ';
If (window. interval)
Clearinterval (interval );
}
}
Function popimage (OBJ, IMG, href)
{
VaR layer = Document. getelementbyid ("popimagelayer ");
VaR T = obj. offsettop;
VaR L = obj. offsetleft;
While (OBJ = obj. offsetparent ){
T + = obj. offsettop;
L + = obj. offsetleft;
}
VaR content = "<Table border = 0 width = 180 Height = 180> <tr> <TD align = 'center' valign = 'middle'> \ n" +
"<A href =" + href + "target = _ blank> </a> </TD> </tr> </table> "; // onclick = 'elelayer ();'
Layer. innerhtml = content;
Layer. style. Left = L + 35-90;
Layer. style. Top = T + 35-90;
Layer. style. Visibility = 'visable ';
}
Function movetomouseloc (E)
{
VaR layer = Document. getelementbyid ("popimagelayer ");
VaR offsetx =-5;
VaR offsety =-5;
VaR x = event. x + document. Body. scrollleft;
Var y = event. Y + document. Body. scrolltop;
Layer. style. Left = x + offsetx;
Layer. style. Top = Y + offsety;
Return true;
}
Function drawimage (IMG, width, height ){
If (drawimage. Arguments. Length <= 1)
Width = height = 70;
VaR image = new image ();
Image. src = IMG. SRC;
If (image. width> 0 & image. Height> 0)
{
If (image. width> width)
{
Rate = image. Height/image. width;
Newheight = Rate * width;
IMG. width = width;
IMG. Height = newheight;
}
}
If (IMG. Height> height)
{
Rate = image. width/image. height;
Newwidth = Rate * height;
IMG. Height = height;
IMG. width = newwidth;
}
}
Function drawimage50 (IMG ){
Drawimage (IMG, 50, 50 );
}
Function resetform (){
VaR F = Document. frmsearch;
F. Page. value = 1;
F. classcode. value = '';
F. sorttype. value = '';
F. Keyword. value = '';
F. area. value = '';
F. minprice. value = f. maxprice. value = '';
Return false;
}
Function manualsearch (){
VaR F = Document. frmsearch;
F. Page. value = 1;
// F. classcode. value = '';
F. sorttype. value = '';
F. Submit ();
Return false;
}
Function checkcondition (OBJ ){
Return true;
}
Function selectview (OBJ)
{
VaR F = Document. frmsearch;
If (obj. selectedindex> 0) & (obj. selectedindex <7 ))
F. sorttype. value = obj. Options [obj. selectedindex]. value;
Else if (obj. selectedindex> 6) & (obj. selectedindex <10 ))
F. View. value = obj. Options [obj. selectedindex]. value;
Else if (obj. selectedindex> 9) & (obj. selectedindex <13 ))
F. pagesize. value = obj. Options [obj. selectedindex]. value;
F. Submit ();
Return false;
}
Function changelocation (OBJ ){
VaR F = Document. frmsearch;
F. area. value = obj. Options [obj. selectedindex]. value;
F. Submit ();
Return false;
}
Function changeviewmode (mode ){
VaR F = Document. frmsearch;
F. View. value = mode;
F. Submit ();
Return false;
}
Function changepage (PAGE ){
VaR F = Document. frmsearch;
F. Page. value = page;
F. Submit ();
Return false;
}
Function changepagesize (pagesize ){
VaR F = Document. frmsearch;
F. Page. value = 1;
F. pagesize. value = pagesize;
F. Submit ();
Return false;
}
function changesorttype (type) {
var F = document. frmsearch;
F. page. value = 1;
F. sorttype. value = type;
F. submit ();
return false;
}< br> function changeclasscode (CODE) {
var F = document. frmsearch;
F. classcode. value = Code;
F. page. value = 1;
F. submit ();
return false;
}< br> function high (which2) {
theobject = which2;
highlighting = setinterval ("highlightit (theobject)", 40);
}< br> function low (which2) {
clearinterval (highlighting );
which2.filters. alpha. opacity = 40;
}< br> function highlightit (cur2) {
If (cur2.filters. alpha. opacity <100)
cur2.filters. alpha. opacity + = 5
else if (window. highlighting)
clearinterval (highlighting)
}
Function delightit (cur2 ){
If (cur2.filters. Alpha. Opacity> 5)
Cur2.filters. Alpha. Opacity-= 5;
Else if (window. Highlighting)
Clearinterval (highlighting );
}
</SCRIPT>
<Div id = "popimagelayer" align = "center" name = "popimagelayer" style = "position: absolute; visibility: hidden; width: 180; Height: 180; cursor: hand; border-style: solid; border-width: 1pt; border-color: Orange "calss =" "> </div>
<Center>
<Br/>
</a>
<Br/> <br/> <br/>
</a>
</Center>