﻿

function ch_type(sel){
// onchangeでウィンドウを開く方法を選択
var form=document.form1;
var open_type=sel.options[sel.selectedIndex].value;
if(open_type==1){form.target="";}
else{form.target="_blank";}
}

function centerSubWin(url,name,l,w,h,x) {
  var _l  = (screen.width-w)/2;
  var t   = (screen.height-h)/2;
  var win = window.open("",name,"left="+l+",top="+t+",width="+w+",height="+h);
  win.moveTo(l,t);
  win.focus();
  for(var i=0; i<Math.floor(Math.abs((_l-l)/x)); i++) {
    win.moveBy(x*(_l-l>0?1:-1),0);
  }
  win.moveBy((_l-l)%x,0);
  win.location.href = url;
  return win;
}
function window01() {
  var w = centerSubWin("http://www.spcontribute.com/cgi-bin/sp/mailer/mail.cgi?id=sakura","",1100,500,440,10)
}
function window11() {
  var w = centerSubWin("http://www.spcontribute.com/cgi-bin/sp/mailer/mail.cgi?id=sakura","",1100,500,400,10)
}
function window02() {
  var w = centerSubWin("./registing_ys.cgi?mode=help","",100,619,600,10)
}
function window21() {
  var w = centerSubWin("http://www.spcontribute.com/cgi-bin/sp/mailer/mail.cgi?id=splove01","",100,500,450,10)
}
function window22() {
  var w = centerSubWin("http://www.spcontribute.com/cgi-bin/sp/mailer/mail.cgi?id=splove01","",100,500,450,10)
}
function windowo0oo00() {
  var w = centerSubWin("http://www.o0oo00.com/flanagan/cgi-bin/mailer/mail.cgi?id=master","",1300,880,550,10)
}


//function window01() {window.open("http://www.spcontribute.com/cgi-bin/sp/mailer/mail.cgi?id=sakura","01","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=500,height=440");}
//function window11() {window.open("http://www.spcontribute.com/cgi-bin/sp/mailer/mail.cgi?id=sakura","11","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=500,height=400");}

//function window02() {window.open("./registing_ys.cgi?mode=help","02","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=619,height=500");}

//function window21() {window.open("http://www.spcontribute.com/cgi-bin/sp/mailer/mail.cgi?id=splove01","01","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,width=500,height=450");}
//function window22() {window.open("http://www.spcontribute.com/cgi-bin/sp/mailer/mail.cgi?id=splove01","01","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,width=500,height=450");}
function window23() {window.open("http://www.spcontribute.com/cgi-bin/sp/mailer/mail.cgi?id=newlink","01","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,width=500,height=450");}

function window41() {window.open("http://www.spcontribute.com/cgi-bin/sp/mailer/mail.cgi?id=Q","01","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,width=600,height=360");}

function windowblogtool() {window.open("http://www.spcontribute.com/cgi-bin/sp/mailer/mail.cgi?id=blogtool","01","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,width=430,height=430");}

function detailwin_h1(url){window.open(url,"","toolbar=0,location=no,directories=no,menuber=0,scrollbars=yes,status=0,resize=0,width=720,height=555");}

//function windowo0oo00() {window.open("http://www.o0oo00.com/flanagan/cgi-bin/mailer/mail.cgi?id=master","01","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=880,height=550");}



function afhelp(url){window.open(url,'','toolbar=0,location=no,directories=no,menuber=0,scrollbars=0,status=0,resize=0,width=270,height=600,left=0,top=0');}

function aflink(url){window.open(url,'',',toolbar=1,location=1,directories=yes,menuber=1,scrollbars=1,status=1,resize=auto,left=280,top=0');}

function afhelp3(url,url1,url2){
	parent.topPage.location.href    = url1;
	parent.bottomPage.location.href = url2;

window.open(url,'url1','url2');
}


// ↓↓ GALLERY OPEN



function g_sample(url) {
  var w = centerSubWin(url,"",10,660,515,10)
}
function galleryg_defaultil_01(url) {
  var w = centerSubWin(url,"",10,695,433,10)
}
function galleryg_(url) {
  var w = centerSubWin(url,"",10,695,423,10)
}

//function g_sample(url){window.open(url,"univgallery_sample","toolbar=0,location=no,directories=no,menuber=0,scrollbars=no,status=1,resize=0,width=660,height=515");}

//function galleryg_defaultil_01(url){window.open(url,"univgallery_defaultil_01","toolbar=0,location=no,directories=no,menuber=0,scrollbars=no,status=1,resize=0,width=695,height=423");}

//function galleryg_(url){window.open(url,"univgallery","toolbar=0,location=no,directories=no,menuber=0,scrollbars=no,status=1,resize=0,width=695,height=423");}


function galleryg_slide_02(url) {
  var w = centerSubWin(url,"",1100,299,435,10)
}
function galleryg_thumbnail_01(url) {
  var w = centerSubWin(url,"",10,695,433,10)
}
function galleryg_gllafic_01(url) {
  var w = centerSubWin(url,"",10,950,690,10)
}

//function galleryg_slide_02(url){window.open(url,"univgallery_slide_02","toolbar=0,location=no,directories=no,menuber=0,scrollbars=no,status=1,resize=0,width=299,height=435");}

//function galleryg_thumbnail_01(url){window.open(url,"univgallery_thumbnail_01","toolbar=0,location=no,directories=no,menuber=0,scrollbars=no,status=1,resize=0,width=695,height=433");}

//function galleryg_gllafic_01(url){window.open(url,"url","toolbar=0,location=0,directories=no,menuber=0,scrollbars=0,status=1,resize=auto,width=950,height=690");}




function galleryg_lightbox_01(url){window.open(url);}
function galleryg_flog_01(url){window.open(url);}
function galleryg_revolver_01(url){window.open(url);}
function galleryg_slide_01(url){window.open(url);}

function galleryg_symple_01(url){window.open(url);}

function galleryg_wide_01(url){window.open(url,"univgallery_wide_01");}

function galleryg_deta_01(url){window.open(url,"univgallery_deta_01");}
function galleryg_deta_02(url){window.open(url,"univgallery_deta_02");}

function galleryg_lc_01(url){window.open(url,"univgallery_lc_01");}

function galleryg_symple_01(url){window.open(url);}
function galleryg_lightbox_01(url){window.open(url);}
function galleryg_flog_01(url){window.open(url);}


// ↑↑ GALLERY OPEN
function galleryg_cm_02(url){location.href(url);}
function galleryg_cm_01(url){window.open("http://www.makata.net/client/cgi-bin/linkOut2/out.cgi?url=0071");}

function galleryg_deai_01(url){window.open(url,"univgallery_deai_01","toolbar=1,location=1,directories=yes,menuber=1,scrollbars=1,status=1,resize=auto,width=900,height=790");}


function change(obj,col,borderc,borderw,color)
{
	obj.style.backgroundColor = col;
	obj.style.borderColor     = borderc;
	obj.style.borderWidth     = borderw;
	obj.style.color     = color;
}




<!--- 画像の切り替え---->
function random_img1(num1,num2) {
if((num1 - num2) > 0) {
var big = num1
var small = num2
} else {
var big = num2
var small = num1
}
var range = big - small + 1
var number = Math.floor(Math.random()*range) + small
return(number)
}

function random_img2() {
var img_src = "http://www.supercreamy.com/ht/cgi-bin/links/img/topp/img" + random_img1(1,14) + ".jpg"
document.write("<IMG SRC='" + img_src + "'>")
}




// テキストコピー

var CYA=1
function HantenC(InTA) {
var akoTP=eval("document."+InTA)
akoTP.focus()
akoTP.select()
if (document.all&&CYA==1){
therange=akoTP.createTextRange()
therange.execCommand("Copy")
window.status="コピー完了"
setTimeout("window.status=''",1800)
}}



// ブルブル

function blublu (i) {
	p=new Object(i.style);
	for (var i=0;i<2;i++){
		var a=setTimeout('p.pixelLeft=3;',i*100);
		var c=setTimeout('p.pixelLeft=0;',i*100+40);
	}
}


// メディアプレーヤー制御

function mPlay()
{
	mPlayer.play();
}
function mStop()
{
	mPlayer.stop();
}



// Copyright (c)

function blublu (i) {
	p=new Object(i.style);
	for (var i=0;i<2;i++){
		var a=setTimeout("p.pixelLeft=3;",i*100);
		var c=setTimeout("p.pixelLeft=0;",i*100+40);
	}
}

genzai=new Date();
t_month=genzai.getFullYear();
l_month=t_month-1;


// Copyright1
window.onload = function() {
var txt = "&copy; 2005-'+t_month+'&nbsp;<a href='http://www.spcontribute.com/' target='_blank' style='position:relative;' id='blublu' onmouseout='blublu(this);'>SP CONTRIBUTE UNIV,</a> &nbsp;&nbsp;&nbsp; powerd by <a href='http://www.spcontribute.com/splove/' target='_blank'  style='position:relative;' id='blublu' onmouseout='blublu(this);'>投稿大学 SPLove</a>";
document.getElementById("Copyright1").innerHTML = txt;
}


// Copyright2
window.onload = function() {
var txt = "&copy; '+t_month+'&nbsp;<a href='http://www.spcontribute.com/' target='_blank' style='position:relative;' id='blublu' onmouseout='blublu(this);'>SP CONTRIBUTE UNIV.</a>"+
"<br> powerd by <a href='http://www.supercreamy.com/' target='_blank'  style='position:relative;' id='blublu' onmouseout='blublu(this);'>SUPER CREAMY</a>";
document.getElementById("Copyright2").innerHTML = txt;
}

window.onload = function() {
var txt = "JavaScript Sample<br>";
document.getElementById("message").innerHTML = txt;
}