﻿// JScript File
    var ALERT_TITLE = "Bid2Buy - Alert!";
 

    // over-ride the alert method only if this a newer browser.
    // Older browser will see standard alerts
    if(document.getElementById) {
	    window.alert = function(txt) {
	       txt = txt.replace(/\n/g,"<BR>");
		   Alert.fnAlert(txt);
	    }
    }

	RedirectToHome = function() {
	    var str=window.location.toString()
	    var str2 = "http://"
	    str = str.substring(0,str.indexOf("/",str2.length) )+  "/Default.aspx"
	    window.location = str
    }
    
    AlertRedirect= function(txt){
        txt = txt.replace(/\n/g,"<BR>");
		Alert.fnAlert(txt, RedirectToHome);
    }

  

