﻿function contact() {
	var user = "info";
	var loc = "3dal";
	var tld = "jp";
	location.href = "mailto:" + user + "@" + loc + "." + tld + "?subject=contact";
}
function mailto(user, loc, tld, sub){
    var title = (!sub) ? "contact" : sub;
    var str = "<a href='mailto:" + user + "@" + loc + "." + tld + "?subject=" + title + "'>" + user + "@" + loc + "." + tld + "</a>";
    document.write(str);
}

function jshref(url, target, features){
    //jshref(".hmtl", "win", {width:100, height:100, lockcenter:true});
    var status = "";
    if (features) {
        if (features.lockcenter) 
            status += 'left=' + ((window.screen.width / 2) - (features.width / 2)) + ', top=' + ((window.screen.height / 2) - (features.height / 2)) + ", ";
        for (var prop in features) {
            if (prop != "lockcenter") {
                status += prop + "=" + features[prop] + ", ";
            }
        }
        if (status.length != 0) 
            status = status.substr(0, status.length - 2);
    }
    target = window.open(url, target, status);
    target.focus();
}

function stylechenge(terget, newclass){
    if (document.all) {
        document.all(terget).className = newclass;
    }
    else {
        document.getElementById(terget).className = newclass;
    }
}

function loadHandler(cl, func){
//    var js = document.createElement("script");
//    js.src = "***";
//    js.type = "text/javascript";
//    document.getElementsByTagName('head')[0].appendChild(js);
//    loadHandler(cl, function(){
//        *** = new ***();
//    });
    try {
        eval(cl);
    } 
    catch (e) {
        setTimeout(eHandler, 100, cl, func);
        return;
    }
    func();
}
